ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   What macro is run by a button??? (https://www.excelbanter.com/excel-programming/321216-what-macro-run-button.html)

Lee Johnson

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

Peo Sjoblom

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




gocush[_29_]

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






All times are GMT +1. The time now is 07:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com