Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
Trying to make part of a macro work only if the target is in col B, otherwise exit. I'm doing this: If Target.Column < B Then Exit Sub Have also tried this: If Target.Address.Column < B Then Exit Sub but neither work. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Am Sat, 1 Dec 2012 02:41:48 -0800 (PST) schrieb robzrob: Trying to make part of a macro work only if the target is in col B, otherwise exit. I'm doing this: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column < 2 Then Exit Sub Your Code End Sub Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Saturday, 1 December 2012 10:52:03 UTC, Claus Busch wrote:
Hi, Am Sat, 1 Dec 2012 02:41:48 -0800 (PST) schrieb robzrob: Trying to make part of a macro work only if the target is in col B, otherwise exit. I'm doing this: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column < 2 Then Exit Sub Your Code End Sub Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 Aha! Vielen dank. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
target.offset(0,-1) does not work as assumed | Excel Programming | |||
Target cell reference moves when target is cut and pasted | Excel Discussion (Misc queries) | |||
Target Address/Value Macro Won't Work | Excel Programming | |||
Target.Address Doesn't Work in Excel 97? | Excel Programming | |||
How find if target is object in Worksheet_Change (ByVal Target As.. ?) | Excel Programming |