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

On the menu bar under FORMAT there is a option for Horizontal Spacing.
This looks like it could be very useful but whenever I try to use it
the options are grey out. How do I make use of this potentially useful
tool?


John Keith

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default indenting VBA code

Those features are for aligning controls on a userform while you are
working in the form designer. They do not have anything to do with
code.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Fri, 20 Feb 2009 09:09:08 -0700, John Keith wrote:

On the menu bar under FORMAT there is a option for Horizontal Spacing.
This looks like it could be very useful but whenever I try to use it
the options are grey out. How do I make use of this potentially useful
tool?


John Keith

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default indenting VBA code

Hi John,

It is used in formatting the objects in userforms like equal spacing etc.
Need a userform open and select objects on the form to be able to use the
options.

--
Regards,

OssieMac


"John Keith" wrote:

On the menu bar under FORMAT there is a option for Horizontal Spacing.
This looks like it could be very useful but whenever I try to use it
the options are grey out. How do I make use of this potentially useful
tool?


John Keith


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default indenting VBA code

On Fri, 20 Feb 2009 10:19:39 -0600, Chip Pearson
wrote:

Those features are for aligning controls on a userform while you are
working in the form designer. They do not have anything to do with
code.


Bummer!

Thanks for correcting my misunderstanding.


John Keith

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default indenting VBA code

But if you what you want is to automatically Indent your VBA code use
Stephen Bullen's Smart Indenter:
http://www.oaltd.co.uk/Indenter/Default.htm

I strongly recommend it

Charles
___________________________________
The Excel Calculation Site
http://www.decisionmodels.com

"John Keith" wrote in message
...
On Fri, 20 Feb 2009 10:19:39 -0600, Chip Pearson
wrote:

Those features are for aligning controls on a userform while you are
working in the form designer. They do not have anything to do with
code.


Bummer!

Thanks for correcting my misunderstanding.


John Keith






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default indenting VBA code

On Fri, 20 Feb 2009 09:09:08 -0700, John Keith wrote:

On the menu bar under FORMAT there is a option for Horizontal Spacing.
This looks like it could be very useful but whenever I try to use it
the options are grey out. How do I make use of this potentially useful
tool?


I have learned that if a block of rows of code is highlighted and then
either tab or shift-tab is pressed the selected lines will be adjusted
horizontally. This is a big improvement over individually adding or
deleting tabs!


John Keith

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default indenting VBA code

like charles mentioned, download Smart Indenter.

--


Gary K



"John Keith" wrote in message
...
On Fri, 20 Feb 2009 09:09:08 -0700, John Keith wrote:

On the menu bar under FORMAT there is a option for Horizontal Spacing.
This looks like it could be very useful but whenever I try to use it
the options are grey out. How do I make use of this potentially useful
tool?


I have learned that if a block of rows of code is highlighted and then
either tab or shift-tab is pressed the selected lines will be adjusted
horizontally. This is a big improvement over individually adding or
deleting tabs!


John Keith


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
Can I stop the footer from indenting? Michelle Excel Discussion (Misc queries) 4 May 10th 10 02:17 AM
Indenting numbers from the right side of a cell jfg Excel Discussion (Misc queries) 4 August 14th 07 11:10 AM
excel indenting a group of rows [email protected] Excel Discussion (Misc queries) 3 June 27th 07 05:11 PM
Tabbing/Indenting within a cell DianeMcP New Users to Excel 2 July 19th 05 05:33 PM
Indenting cells in Excel Beth Excel Discussion (Misc queries) 2 March 4th 05 12:47 AM


All times are GMT +1. The time now is 10:06 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"