[ABC home]    [ABC Archives by Issue]   [ABC Archives by Author]  [Search]  [Privacy]

 

ABC Home Page
ABC Home

Advertise in ABC

 

Learn more
about
James La Borde
James La Borde

 

Read
James's Archives

James's Archives

Online classes
at Eclectic Academy
 Instructor led online courses at Eclectic Academy

PowerPoint to Exe
convert PowerPoint presentations to exes

Lock 'n Hide
Folder Security

Hide files and folders in Windows 9X

 

ABC ~ All 'Bout Computers
The Online Web-azine for Computer Enthusiasts
-- brought to you by
Visit Linda's Computer Stop

contents page for this issue

Printing Your VBA Code
~~James La Borde

How many of you have tried to print out your VBA code in the hopes of sitting down and going over it to try to troubleshoot a problem? Maybe tried to print it for posterity sake? Maybe even print out someone else's code to try to learn from it and follow the logic? If you have tried to print your VBA code you have probably learned one very disappointing fact, the nice color-coded code does not remain when printed. That makes it rather hard to read.

I don't normally endorse products here. However, there is a free application available on the web that takes care of this annoyance. It is called PrettyCode.Print from http://www.VBCity.com. This is a simple file that allows you to import your VBA code and print it out to a color printer and retain the nice formatting. As an added bonus it also groups your logic. This can prove to be an invaluable troubleshooting tool if you have faulty logic or a mismatched loop. It groups the following logic for you:

With… End With
Do… Loop
If…Then… Else

The nice thing about it is that it shows each component of your statement linked by a single line. Each level is included so if you embed an If… then… Else within a Do…Loop, it still shows up as a unique grouping. Your code is unchanged other than the lines to help in your grouping.

VBCity does require that you register the product online but that is a free process and this is definitely a valuable tool for such a minor hassle. If you would like to check it out for yourself, visit: http://www.vbcity.com/page.asp?p=pcp_index

<<<back to contents

James La Borde works in the computer department at a Credit Union, where he uses Access, SQL Server, VBA, and ODBC daily.  He also teaches online Access classes at Eclectic Academy.

My Newest Book
Excel 2003 Study Guide

published by Wiley
get it at Amazon,
at Barnes & Noble,
or at Borders

 


 Support ABC

Linda's Ebooks
Ebooks on Access, Excel, Outlook, PowerPoint, Publisher, and Word

Linda's CD
Order Linda's CD and learn all of the Office programs

The Newbie Club
Learn all about computers the easy way

Online classes
at Eclectic Academy
 Instructor led online courses at Eclectic Academy

FrontLook
Add-ins
& Screen Capture


 

Privacy Policy, Disclaimer, and Legal Stuff

Pay Per Click Ads by Pay Per Click Advertising by Kontera

This page was last updated on Tuesday, September 23, 2008 . copyright © 2000 - 2008, Linda F. Johnson, Linda's Computer Stop, ABC ~ All 'Bout Computers. All rights reserved.