Hi everyone ...
Another (probably) simple Excel VBA Newbie question.
I need to run a Sub whenever the active cell is any cell in a specific column. I can get it to work for a specific cell by using
If Target.Address = "$A$2" Then
Do Something
But If I try it using any variable on this
If Target.address = "G:G" then
Do Something
I get either a type mismatch error, a With Block not set error, or it just skips right past the code being called.
I am using the Worksheet_SelectionChange event.
Thanks
Michael
Another (probably) simple Excel VBA Newbie question.
I need to run a Sub whenever the active cell is any cell in a specific column. I can get it to work for a specific cell by using
If Target.Address = "$A$2" Then
Do Something
But If I try it using any variable on this
If Target.address = "G:G" then
Do Something
I get either a type mismatch error, a With Block not set error, or it just skips right past the code being called.
I am using the Worksheet_SelectionChange event.
Thanks
Michael