vba code format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
is there a way to format vba code automatically with indents and such? (like
a shortcut key to press or something)
thanks,
rodchar
 
For new VBA code, you should have the Auto Indent enabled. In the VBA
Editor, go to the Tools menu, choose Options then check the Auto Indent
setting. This will indent code as you type but doesn't indent existing code.
For that, you should get your hands on Stephen Bullen's Smart Indent add-in,
free to download from http://www.oaltd.co.uk/Excel/Default.htm , about half
way down the page.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 
cool, thanks for the tip.
rod.

Chip Pearson said:
For new VBA code, you should have the Auto Indent enabled. In the VBA
Editor, go to the Tools menu, choose Options then check the Auto Indent
setting. This will indent code as you type but doesn't indent existing code.
For that, you should get your hands on Stephen Bullen's Smart Indent add-in,
free to download from http://www.oaltd.co.uk/Excel/Default.htm , about half
way down the page.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top