Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 1
Default What macro is run by a button???

Gang,
There is a little smiley face button put on the toolbar at one of our
computers that runs a macro when pressed. How can we find out which macro
is being run????

Thanks
Lee Johnson
  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 3,268
Default What macro is run by a button???

One way,

right click on any tool bar (or do toolscustomize) and select customize,
right click on the button and select assign macro,
in the name of the macro is in the name box. For instance if the macro is
stored in the personal.xls the name would look like

PERSONAL.XLS!macroname

now when you know where it is stored you can press Alt + F11 to open the
VBE, select the workbook and double click the
modules folder in the project pane to the left, then double click the module
itself and the code will be there

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Lee Johnson" wrote in message
8.18...
Gang,
There is a little smiley face button put on the toolbar at one of our
computers that runs a macro when pressed. How can we find out which macro
is being run????

Thanks
Lee Johnson



  #3   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 252
Default What macro is run by a button???

you can also get to the code by right clicking the button Assign MacroEdit

"Peo Sjoblom" wrote:

One way,

right click on any tool bar (or do toolscustomize) and select customize,
right click on the button and select assign macro,
in the name of the macro is in the name box. For instance if the macro is
stored in the personal.xls the name would look like

PERSONAL.XLS!macroname

now when you know where it is stored you can press Alt + F11 to open the
VBE, select the workbook and double click the
modules folder in the project pane to the left, then double click the module
itself and the code will be there

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Lee Johnson" wrote in message
8.18...
Gang,
There is a little smiley face button put on the toolbar at one of our
computers that runs a macro when pressed. How can we find out which macro
is being run????

Thanks
Lee Johnson




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
Use Macro To Change Which Macro Assigned To Command Button CVinje Excel Discussion (Misc queries) 0 May 25th 10 09:55 PM
Using Macro to sort without clicking on macro button dd Excel Discussion (Misc queries) 3 May 3rd 07 06:00 PM
Can't select macro button after other button is pressed C. Campbell Excel Programming 1 November 30th 04 07:46 PM
Pause macro, add form button to sheet, continue macro when button clicked! Flystar[_15_] Excel Programming 1 May 26th 04 09:45 AM
How to end macro on inital active worksheet containing macro button that was clicked Silverhawk1 Excel Programming 2 May 14th 04 03:58 PM


All times are GMT +1. The time now is 04:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"