Thread: Editing code
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Harlan Grove Harlan Grove is offline
external usenet poster
 
Posts: 66
Default Editing code

"Todd Huttenswtine" wrote...
Public Sub Test

'End Sub

<my existing code here
end sub

Above is a code that I would like to modify at run time.
I need for it to take the ' out of "'End Sub".


It'd be much simpler, quicker and easier to maintain if you used something
like

Public Sub Test()
If SomeBailoutStateVarible Then Exit Sub
'your code here
End Sub