Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Macro name listing

Excel XP, Win XP
I have some 17 macros listed in my file under Tools - Macro - Macros. Of
those, 16 are listed with just their names, as in "MyMacro". The 17th one
insists on being listed with the full path:
'My File Name.xls'!MyModuleName.MyMacroName

I tried commenting out that macro, saving the file, opening the file.
Listing is the same.
I tried copying the macro to Word, deleting the macro, saving the file,
closing Excel, opening Excel, opening the file, copying the macro from Word
back to the VBE, closing the file & Excel, opening both. Same listing.

Three questions:
Why is that macro listed that way?
Is there any significance that it's listed that way?
How do I get that macro listed with just the name?

Thanks for your help. Otto


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Macro name listing

Otto,

the display of the list of macro's depends on the location of the macro
in relation to the activeworkbook.

If the macro is NOT stored in the activeworkbook, the filename is shown.

Furthermore if your procedure is not stored in a standard code module
but in an object module such as sheet1 the object name is listed as
well.

Further more if have procedures with the same name but stored in
different modules the identieying module name is shown as well.

If can by that you have a double procedure names. (one of which may not
be visible in the macro list because it has arguments or has a Private
prefix...

Try changing the macroname of the "offender" and see what happens..



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Otto Moehrbach" wrote:

Excel XP, Win XP
I have some 17 macros listed in my file under Tools - Macro - Macros.
Of those, 16 are listed with just their names, as in "MyMacro". The
17th one insists on being listed with the full path:
'My File Name.xls'!MyModuleName.MyMacroName

I tried commenting out that macro, saving the file, opening the
file.
Listing is the same.
I tried copying the macro to Word, deleting the macro, saving the
file,
closing Excel, opening Excel, opening the file, copying the macro from
Word back to the VBE, closing the file & Excel, opening both. Same
listing.

Three questions:
Why is that macro listed that way?
Is there any significance that it's listed that way?
How do I get that macro listed with just the name?

Thanks for your help. Otto




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Macro name listing

You hit it on the head. I looked and found that I had 2 procedures with the
same name, one of which had arguments. Renamed one of them and that did it.
Thanks a lot for your help. Otto
"keepitcool" wrote in message
...
Otto,

the display of the list of macro's depends on the location of the macro
in relation to the activeworkbook.

If the macro is NOT stored in the activeworkbook, the filename is shown.

Furthermore if your procedure is not stored in a standard code module
but in an object module such as sheet1 the object name is listed as
well.

Further more if have procedures with the same name but stored in
different modules the identieying module name is shown as well.

If can by that you have a double procedure names. (one of which may not
be visible in the macro list because it has arguments or has a Private
prefix...

Try changing the macroname of the "offender" and see what happens..



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Otto Moehrbach" wrote:

Excel XP, Win XP
I have some 17 macros listed in my file under Tools - Macro - Macros.
Of those, 16 are listed with just their names, as in "MyMacro". The
17th one insists on being listed with the full path:
'My File Name.xls'!MyModuleName.MyMacroName

I tried commenting out that macro, saving the file, opening the
file.
Listing is the same.
I tried copying the macro to Word, deleting the macro, saving the
file,
closing Excel, opening Excel, opening the file, copying the macro from
Word back to the VBE, closing the file & Excel, opening both. Same
listing.

Three questions:
Why is that macro listed that way?
Is there any significance that it's listed that way?
How do I get that macro listed with just the name?

Thanks for your help. Otto






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
Listing multiple values in a macro ToddS Excel Worksheet Functions 6 April 8th 09 03:53 PM
Factorial Listing Branson Excel Discussion (Misc queries) 3 June 6th 08 04:18 PM
Listing top three leaders Killer Excel Worksheet Functions 10 November 29th 06 10:37 PM
Directory listing Nigel Chapman Excel Discussion (Misc queries) 2 April 15th 05 02:52 PM
sum and listing Andreas5516 Excel Discussion (Misc queries) 2 February 4th 05 10:44 PM


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