Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default How to get a vba macro to show up in the macro menu

Hello. This is a pretty simple question, but for some reason I haven't been
able to figure out how to do it. If I write some vba code and compile it, is
it possible to get this macro to show up on the Tools-Macro menu so people
don't have to enter the code editor to run the macro? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default How to get a vba macro to show up in the macro menu

If you put it in a standard code module, don't make it Private, don't make
the module Private, and don't have arguments, it should show fine.

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"JacksonRJones" wrote in message
...
Hello. This is a pretty simple question, but for some reason I haven't

been
able to figure out how to do it. If I write some vba code and compile it,

is
it possible to get this macro to show up on the Tools-Macro menu so

people
don't have to enter the code editor to run the macro? Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to get a vba macro to show up in the macro menu

Macro won't show up in the Macro Dialog sheet if they are
Private, or the module has Option Private Module at the top, or
the macros take parameters, or the macro is a Function instead of
a Sub. Other than that, they should appear in the list.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"JacksonRJones" wrote
in message
...
Hello. This is a pretty simple question, but for some reason I
haven't been
able to figure out how to do it. If I write some vba code and
compile it, is
it possible to get this macro to show up on the Tools-Macro
menu so people
don't have to enter the code editor to run the macro? Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default How to get a vba macro to show up in the macro menu

On Thu, 11 May 2006 11:40:30 -0500, Chip Pearson wrote:

Macro won't show up in the Macro Dialog sheet if they are
Private, or the module has Option Private Module at the top, or
the macros take parameters, or the macro is a Function instead of
a Sub. Other than that, they should appear in the list.


To clarify, the macro doesn't show up if it has non-optional parameters.
Make them all optional and it will show up.

Don <www.donwiss.com (e-mail link at home page bottom).
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
Old Menu Macro oldjay Setting up and Configuration of Excel 1 December 15th 09 08:06 PM
Macro in Menu Zainuddin Excel Discussion (Misc queries) 1 June 28th 09 11:21 AM
macro does not assign to menu? Robert24 Excel Discussion (Misc queries) 2 October 2nd 08 04:39 AM
MACRO MENU REDANDY Excel Discussion (Misc queries) 5 October 26th 07 01:10 AM
Show Macro list (tools-macro-macros) Hafeez Esmail Excel Programming 5 December 31st 03 09:54 PM


All times are GMT +1. The time now is 11:30 PM.

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"