Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
If statement in Auto_Open
When an Excel Workbook opens, if cell A1 in Sheet1 contains nothing I
want Excel to run Macro1. If cell A1 in Sheet1 contains the text "Hello", I want Excel to do nothing. I've tried this: If (Sheet1)A:1 = "Hello" Then Range("A1").Select Else Macro1 End If but VB gives me the red pen for the first two lines. Any ideas? Kind regards Ian M |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
AUTO_OPEN | Excel Discussion (Misc queries) | |||
Auto_open and more.... | New Users to Excel | |||
Auto_open and more.... | New Users to Excel | |||
Auto_open | Excel Discussion (Misc queries) | |||
Beyond AUTO_OPEN | Excel Programming |