Solved

VBA Editor greyed out

Posted on 2014-07-25
5
154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 13

Accepted Solution

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

Duncan
0
 
LVL 33

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 85

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 120

Assisted Solution

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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

729 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