Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Editing code

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".

Thanks

Todd Huttenstine
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Editing code

A Sub only has one End Sub. The End Sub should be blue in color.

The ' before any text signifies a comment and changes the text that follows
the ' to the color green. These comments can be deleted.


"Todd Huttenswtine" wrote in message
...
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".

Thanks

Todd Huttenstine



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Editing code

Unusual request. What are you trying to do?

"Todd Huttenswtine" wrote in message
...
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".

Thanks

Todd Huttenstine



  #4   Report Post  
Posted to microsoft.public.excel.programming
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Need help editing this code James Excel Discussion (Misc queries) 8 September 19th 08 05:18 PM
Recalculation Speed After Editing Macro Code Bob Keating Excel Programming 1 November 16th 03 01:08 PM
Protect macro code from viewing/editing Keith[_8_] Excel Programming 5 October 30th 03 02:59 PM
Code Editing Code Tom Ogilvy Excel Programming 0 September 25th 03 04:22 AM


All times are GMT +1. The time now is 09:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"