Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
If Statment - Active Cell Column Address
Need to use an if statement in a macro to control program flow.
If active cell is in column C then €¦€¦€¦€¦. Else €¦.. End if How do I do this??? Thanks in Advanced Richard -- Richard |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
If Statment - Active Cell Column Address
If activecell.column=3 then .....
HTH "Richard" wrote: Need to use an if statement in a macro to control program flow. If active cell is in column C then €¦€¦€¦€¦. Else €¦.. End if How do I do this??? Thanks in Advanced Richard -- Richard |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
If Statment - Active Cell Column Address
Another way:
with activesheet if intersect(activecell, .range("C:C")) is nothing then 'not in column C else 'do what you want end if end with This can come in handy if you want to adjust that range to check: with activesheet if intersect(activecell, .range("C:E, G1:H9, L:M")) is nothing then 'not in columns C:E, L:M or in G1:H9 else 'do what you want end if end with Richard wrote: Need to use an if statement in a macro to control program flow. If active cell is in column C then €¦€¦€¦€¦. Else €¦.. End if How do I do this??? Thanks in Advanced Richard -- Richard -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
conditional cell format based on cell in same row, previous column | Excel Worksheet Functions | |||
Help with copying dynamic column selected based on remote cell value and dynamic formula fill | Charts and Charting in Excel | |||
Possible Lookup Table | Excel Worksheet Functions | |||
Return Count for LAST NonBlank Cell in each Row | Excel Worksheet Functions | |||
How do I reference every "n" cell in a column in Excel? | Excel Worksheet Functions |