View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bernie Deitrick[_2_] Bernie Deitrick[_2_] is offline
external usenet poster
 
Posts: 176
Default Start a macro from a specific line while editing

Tolga,

Two ways:

First way: Select all the lines above, and click the "comment block"
button on the editing toolbar in the VBEditor.

To undo, just select the same block and click the "uncomment block"
button.

Second way: wrap your lines in a conditional, and set your boolean
value appropriately.

Dim Skip As Boolean
Skip = True

If Skip Then
.....Old code to skip here
End if

HTH,
Bernie


"Tolga & Hande" wrote in message
...
We want to start a macro from a specific line while
testing instead of from the first code to speed up
editing and testing.