?
Solved

Macro not available to execute from this workbook.

Posted on 2008-06-24
4
Medium Priority
?
286 Views
Last Modified: 2010-04-30
I have two macros (both public) in the this workbook section of vb.  When I open the spreadsheet, one is available to execute but the other is not.  Why?
0
Comment
Question by:ilrosebud26
[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
  • 2
  • 2
4 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 21857025
What happens when you try to execute it?
0
 

Author Comment

by:ilrosebud26
ID: 21857066
When I first open the workbook and try to launch from the menu, the run option is not available.  If I save the file after it is open, the macro name changes and the run button is then available.
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 21857125
If you mean that they aren't visible from the Tools/Macro menu, the list will not show subs that need a parameter or any functions.
0
 

Author Comment

by:ilrosebud26
ID: 21857570
Here is the macro....I do not think there is anything that needs a parameter or function.  

Rosemary
Public Sub DeleteMenu()
    On Error Resume Next
    Application.CommandBars("Worksheet Menu Bar").Controls("Marketing Cost").Delete
    On Error GoTo 0
End Sub

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 7 hours left to enroll

762 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