Solved

Macro not available to execute from this workbook.

Posted on 2008-06-24
4
282 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
  • 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 125 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

821 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