Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range
Hello,
Is there a better way to start this if statement - it is not working for me If ActiveCell.Address = Range("$a$f1278").Address Then |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range
hard to tell. $a$f1278 isn't a valid address you could mean
af1278 a1278 f1278 You don't need $ in VBA for an argument to Range You could do If ActiveCell.Address = "$AF$1278" then You do need the dollar signs here because the comparison is to a string that would match the results of the Address argument. -- Regards, Tom Ogilvy wrote in message ... Hello, Is there a better way to start this if statement - it is not working for me If ActiveCell.Address = Range("$a$f1278").Address Then |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range
Thank You
That's my problem I typed it incorrectly -----Original Message----- hard to tell. $a$f1278 isn't a valid address you could mean af1278 a1278 f1278 You don't need $ in VBA for an argument to Range You could do If ActiveCell.Address = "$AF$1278" then You do need the dollar signs here because the comparison is to a string that would match the results of the Address argument. -- Regards, Tom Ogilvy wrote in message ... Hello, Is there a better way to start this if statement - it is not working for me If ActiveCell.Address = Range("$a$f1278").Address Then . |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range
Hi
Do you mean If ActiveCell.Address = Range("$af$1278").Address Then -- XL2002 Regards William wrote in message ... | Hello, | | Is there a better way to start this if statement - it is | not working for me | | If ActiveCell.Address = Range("$a$f1278").Address Then |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
Cond. Format Data Bars of range based on values of another range | Excel Worksheet Functions | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Range.Find returns cell outside of range when range set to single cell | Excel Programming | |||
how to? set my range= my UDF argument (range vs. value in range) [advanced?] | Excel Programming |