Set Target.Address to a Column

Salrandin

New Member
Joined
Jun 27, 2011
Messages
32
Hi All,

I am new here and from my recent lurkings have found my pathetic vision of excel to be shattered... I did not know you could do so much in it. Anyways I am looking to learn and my first question:

Is there a clean way to set target.address to a column?

Code:
If Target.Address = "$A$1" Then

I have googled some ways to set it to a defined range but I want a whole column. Any help appreciated. Thanks.
 
sh is an object created by the workbook_sheetchange event...
It represents the Sheet that had some value on it changed.


I have been answering under the assumption that you're using a Worksheet_Change event code...since that where Target normally comes from...
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
sh is an object created by the workbook_sheetchange event...
It represents the Sheet that had some value on it changed.


I have been answering under the assumption that you're using a Worksheet_Change event code...since that where Target normally comes from...

Ahh okay it makes sense now... I am learning this through google examples on an as needed basis so there are wholes in my knowledge, thanks for the help.
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top