Solved

VBA Editor greyed out

Posted on 2014-07-25
5
146 Views
Last Modified: 2014-07-28
Hi,

Im trying to line up indentations in my modules, when i highlight the code and attempt to edit using Format>Horizontal Spacing, the option to do so is greyed out

I have attached a screenshot

I have stepped in and out of the code but the problem still remain, has anyone a solution?

Thanks
0
Comment
Question by:Seamus2626
5 Comments
 
LVL 13

Accepted Solution

by:
duncanb7 earned 100 total points
ID: 40219547
where screenshot ?

Duncan
0
 
LVL 32

Assisted Solution

by:Rob Henson
Rob Henson earned 100 total points
ID: 40219561
I believe the Format menu is only for use with Drawn objects such as buttons on User Forms.

Thanks
Rob H
0
 
LVL 31

Assisted Solution

by:Helen_Feddema
Helen_Feddema earned 100 total points
ID: 40219597
There is no Format menu in the VB window (if we are talking about Access here).  The indentation is determined by the setting in the Options dialog, opened from the Tools menu in the VB window:
VB Options dialogIt is the same in the Excel VB window.
If your code has irregular indentations, you have to fix them manually.  The setting in the Options dialog only applies to future indents.
0
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 100 total points
ID: 40219613
If all you're trying to do is indent, you might try Smart Indenter:

http://www.oaltd.co.uk/Indenter/Default.htm

It's free, and I've used it in every version of Access from 2003 - 2013.

If you need more power, you might consider FMS CodeTools:

http://www.fmsinc.com/MicrosoftAccess/VBACodingTools.html

Total Visual Code Tools is very powerful, with tons of features. I use it every day in my Access work and would be very hard pressed to work in Access VBA without it.
0
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero earned 100 total points
ID: 40219621
you can use the "Indent" and "Outdent" from the Edit menu
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now