I am fairly new to VBA and have yet to figure out how to use the variables created when using a SelectionChange.
I have some code in a module that I only want to run if a selected range is changed. My thoughts are to create a global variable that is set within the SelectionChange module when and if the range is changed. Then test against that variable in my other module. The problem is, I don't know how to test whether the contents have changed. I don't get how you use the "Target" variable.
Let's say the range on the sheet is "R6:T10". How do I set my variable if the contents of those cells are changed?
I have some code in a module that I only want to run if a selected range is changed. My thoughts are to create a global variable that is set within the SelectionChange module when and if the range is changed. Then test against that variable in my other module. The problem is, I don't know how to test whether the contents have changed. I don't get how you use the "Target" variable.
Let's say the range on the sheet is "R6:T10". How do I set my variable if the contents of those cells are changed?