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

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default vba code format

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)





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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default vba code format

cool, thanks for the tip.
rod.

"Chip Pearson" wrote:

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)





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


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
Code to conditional format all black after date specified in code? wx4usa Excel Discussion (Misc queries) 3 December 26th 08 07:06 PM
Code Date Format Depending on Computer format Myriam Excel Discussion (Misc queries) 0 July 17th 07 03:26 PM
how to format code in VBA? cfman Excel Programming 4 March 9th 07 01:04 PM
code to convert date from TEXT format (03-02) to DATE format (200203) Gauthier[_2_] Excel Programming 0 September 22nd 04 03:26 PM
code for converting data format in another format mistral Excel Programming 0 August 19th 04 04:50 PM


All times are GMT +1. The time now is 01:34 PM.

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

About Us

"It's about Microsoft Excel"