Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Show Macro list (tools-macro-macros)

I've written some code in Excel.
When I go to Tools -- Macro -- Macros
Nothing shows up.
I have to type in the name of my public sub inorder to run
my code.

What do I need to do in order for other people to view my
routines by going to tools -- macro -- macros?

Thanks
Hafeez Esmail
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Show Macro list (tools-macro-macros)

Hafeez,

Where did you put the sub???
It should be in a regular (not worksheet or workbook) module.
It should begin with
Sub MacroName()
not
Private Sub xxxxxxx
Make sure it doesn't say
Option Private Module
at the top of the module.

John

"Hafeez Esmail" wrote in message
...
I've written some code in Excel.
When I go to Tools -- Macro -- Macros
Nothing shows up.
I have to type in the name of my public sub inorder to run
my code.

What do I need to do in order for other people to view my
routines by going to tools -- macro -- macros?

Thanks
Hafeez Esmail



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Show Macro list (tools-macro-macros)

Also, I believe if there are numbers in the macro name ie C7_D9, the macro
will show in the list but the 'Run' button will be dimmed and will not
trigger the macro.

"Hafeez Esmail" wrote in message
...
I've written some code in Excel.
When I go to Tools -- Macro -- Macros
Nothing shows up.
I have to type in the name of my public sub inorder to run
my code.

What do I need to do in order for other people to view my
routines by going to tools -- macro -- macros?

Thanks
Hafeez Esmail



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Show Macro list (tools-macro-macros)

Hafeez

Another point to add to John's.....if the macros are in an Add-in they won't
show in the dialog box.

Gord Dibben Excel MVP


On Wed, 31 Dec 2003 14:17:49 -0500, "John Wilson"
wrote:

Hafeez,

Where did you put the sub???
It should be in a regular (not worksheet or workbook) module.
It should begin with
Sub MacroName()
not
Private Sub xxxxxxx
Make sure it doesn't say
Option Private Module
at the top of the module.

John

"Hafeez Esmail" wrote in message
...
I've written some code in Excel.
When I go to Tools -- Macro -- Macros
Nothing shows up.
I have to type in the name of my public sub inorder to run
my code.

What do I need to do in order for other people to view my
routines by going to tools -- macro -- macros?

Thanks
Hafeez Esmail



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Show Macro list (tools-macro-macros)

It said Public Sub Main; I changed it to Sub Main and it
works:-)

Thanks for your help guys!

Hafeez Esmail
-----Original Message-----
Hafeez

Another point to add to John's.....if the macros are in

an Add-in they won't
show in the dialog box.

Gord Dibben Excel MVP


On Wed, 31 Dec 2003 14:17:49 -0500, "John Wilson"


wrote:

Hafeez,

Where did you put the sub???
It should be in a regular (not worksheet or workbook)

module.
It should begin with
Sub MacroName()
not
Private Sub xxxxxxx
Make sure it doesn't say
Option Private Module
at the top of the module.

John

"Hafeez Esmail" wrote in message
...
I've written some code in Excel.
When I go to Tools -- Macro -- Macros
Nothing shows up.
I have to type in the name of my public sub inorder to

run
my code.

What do I need to do in order for other people to view

my
routines by going to tools -- macro -- macros?

Thanks
Hafeez Esmail



.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Show Macro list (tools-macro-macros)

I use numbers in my macro names all the time and I have no trouble running
them.

--
Regards,
Tom Ogilvy

Mike Fogleman wrote in message
...
Also, I believe if there are numbers in the macro name ie C7_D9, the macro
will show in the list but the 'Run' button will be dimmed and will not
trigger the macro.

"Hafeez Esmail" wrote in message
...
I've written some code in Excel.
When I go to Tools -- Macro -- Macros
Nothing shows up.
I have to type in the name of my public sub inorder to run
my code.

What do I need to do in order for other people to view my
routines by going to tools -- macro -- macros?

Thanks
Hafeez Esmail





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
How do I get my macros from an XLA file to show in Tools Macro Harlan Grove[_2_] Excel Worksheet Functions 0 June 28th 09 11:34 PM
How do I get my macros from an XLA file to show in Tools Macro smartin Excel Worksheet Functions 0 June 28th 09 10:48 PM
disable user running macro from Tools Macro Steve Simons Excel Discussion (Misc queries) 4 September 28th 06 06:28 AM
Macros not appearing in the Tools Macro Macros list hglamy[_2_] Excel Programming 5 October 24th 03 09:10 AM
List the Macros that can be executed from Tools-Macros Rob Bovey Excel Programming 1 July 10th 03 05:34 PM


All times are GMT +1. The time now is 11:15 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"