Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The code below works great if the worksheet "Holidays" is active. I need it
to work when Holidays is not the active worksheet. With Sheets("Holidays") If range("L1") = "No Picture" Then Intentions.Show End If End With |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sat, 15 Nov 2008 11:28:43 -0800, "Patrick C. Simonds"
wrote: The code below works great if the worksheet "Holidays" is active. I need it to work when Holidays is not the active worksheet. With Sheets("Holidays") If range("L1") = "No Picture" Then Intentions.Show End If End With Bad syntax. Try: With Sheets("Holidays") If .range("L1") = "No Picture" Then Intentions.Show End If End With Note the "." before Range --ron |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
add the . before the range
.range("L1") "Patrick C. Simonds" wrote: The code below works great if the worksheet "Holidays" is active. I need it to work when Holidays is not the active worksheet. With Sheets("Holidays") If range("L1") = "No Picture" Then Intentions.Show End If End With |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SQL statement question | Excel Discussion (Misc queries) | |||
If statement question | Excel Programming | |||
IF statement question | Excel Worksheet Functions | |||
If Statement Question | Excel Worksheet Functions | |||
IF Statement Question | Excel Worksheet Functions |