Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing line breaks between code

Status
Not open for further replies.

KatGraham

Programmer
Feb 12, 2003
58
US
How do I print break lines between commands or functions when printing code?
 
Are you refering to control breaks you've inserted to debug? If so, there's no way to print them.
 
No, I'm referring to the line that show between subs when in design view. When I print the code, the lines do not appear. The lines between code help visually.
 
If there is, I don't know it. I just get in the habit of adding

'**********************************************************
at the top and bottom of the function. I think there are also some third party tools that will do it for you automatically.
 
For what it's worth, what I do is turn off the Procedure separator option, and add in the my own separator lines into the code.

'==============================================
Function
'-------------------------------------
Sub
'-------------------------------------
Function
'==============================================
sub/function
'---------------------------
...

and so forth where all of the subs/function separated by the single line are related in some way, or logically should be grouped together, and separate sections which are un-related use the double lines as breaks. Since they are nothing more than comments in the code, they print out just like everything else.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top