View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Desert Piranha[_56_] Desert Piranha[_56_] is offline
external usenet poster
 
Posts: 1
Default Toggle Code Calls


Hi all,

If these work, to call macro's:

Sub RunCode1()
Code1
End Sub

Sub RunCode2()
Code2
End Sub

Why dosen't this work, to toggle the calls?
Sub testoftoggle()
If Code1 = True Then
Code2
Else
Code1
End If
End Sub


--
Desert Piranha


------------------------------------------------------------------------
Desert Piranha's Profile: http://www.excelforum.com/member.php...o&userid=28934
View this thread: http://www.excelforum.com/showthread...hreadid=517572