Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Help: Excel Macro window run button disabled for all code in 1 module?

This is an odd one and I can't figure it out. Using Excel 2K3 SP2 on
W2K. Excel macro security level medium. Choose "Enable" to security
prompt when opening WB. 3 modules and a bunch of class modules.
Compiles fine, all code runs fine and has been in use for some time.

In Excel, select Tools - Macro - Macros... In this window, all
appropriate routines are displayed from the 3 modules. However, the
Macros window will disable all buttons except Cancel and Edit if I
highlight any routine from one of these modules. I cannot select Run.
At some point in the past this had been working.

Things I tried:
1. Explicitly declare Subs as "Public" - no change

2. Rename the problem Module - no change

3. Move all code (cut/paste) to a new Module - no change

4. Checked the .BAS file w/ a text editor to see if there were some
hidden attributes - nothing

5. Copy all code to a new Module - when I do this, then the Macros
window will display 2 entries for each routine (e.g. Module1.xyz and
Module2.xyz). Whats weird now is that the Run button is enabled for
BOTH of these now in the Macros window. If I then delete one of these
modules, it becomes disabled again.

There are no duplicate routine names or conflicts that I can see. I
can run the code directly from the VBA IDE and it runs fine. I do use
the Explicit option. I have conditional compilation constants, but not
used in this particular module. No code runs automatically on startup.
No add-ins installed.

Can someone help me out? Is there anything else I can check? I'm
hoping someone has an answer. Thanks!!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Help: Excel Macro window run button disabled for all code in 1 module?

Well, I found the culprit - Name Manager Add-In Beta 4 version build
560.

The end result is that some routines can become corrupted? to some
extent (exact root cause is unknown to me...looks like it might be a
renaming or naming issue); it will cause the Excel application to
disable the Run / Step Into / Edit / Delete / Options buttons in the
Run Macro window. The code still compiles fine and can be run through
the VBA IDE.

This does not necessarily apply to all routines in a Module.

If you remove the Add-In, everything becomes normal.

I am submitting an issue request w/ the author.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Help: Excel Macro window run button disabled for all code in 1 module?

I spoke with the author of NM. The issue has been identified as an
Excel naming conflict which I was unaware of. Naming routines R_xyz
(with the underscore being any numeral) will cause this problem - I
guess it conflicts with the R1C1 name.

Never really occured to me since this naming will work for variable
names.

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
Remove Protected Macro Code from Excel Module TGV[_2_] Excel Discussion (Misc queries) 4 August 24th 09 04:10 PM
Disabled Absolute/Relative Macro Button J Shrimps, Jr. Excel Programming 4 April 5th 06 08:13 PM
Why Is The Macro Edit Button Disabled? KelleyS Excel Programming 1 January 20th 06 11:43 PM
Attaching a macro (module) code to button Todd Huttenstine[_2_] Excel Programming 1 December 29th 03 09:12 AM
Excel 2002 Macro Run button disabled? Dash Excel Programming 1 September 13th 03 05:05 AM


All times are GMT +1. The time now is 08:12 AM.

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"