Something like this maybe:
<font face=tahoma><SPAN style="color:#00007F">Sub</SPAN> foo()
<SPAN style="color:#00007F">If</SPAN> Sheets("Summary").Visible = <SPAN style="color:#00007F">False</SPAN> <SPAN style="color:#00007F">Then</SPAN>
<SPAN style="color:#007F00">' Do something</SPAN>
Else: <SPAN style="color:#007F00">' Do something else</SPAN>
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN>
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
Hope that helps,
Smitty