Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am studying Excel macros. I have been given an assignment that says: "To
better understand the way that macros can be used to simplify our work, look at the Excel toolbars. The buttons represent macros and scripts. See if you can replicate the macros for each of the buttons on the Standard toolbar. If there are any buttons you cannot replicate, explain why." I have not a clue hpw to go about this. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Suzi
What the assigment wants you to do is see if you can write a macro that replicates what each of the buttons does when clicked on. The New File button opens a new workbook. The Open button opens the dialog from where you can select a file to open. The Save button saves the workbook you are working on. Each of these can be replicated by Recording a macro while clicking the button. Go to ToolsMacroRecord new macro. Click on the New button and then Stop Recording. ToolsMacroMacros. Select Macro1 and Edit to see the code just produced. You can follow these steps for each button on the Toolbar. I don't know which ones you can replicate.....most I would assume but only you and your recordings will tell. Gord Dibben MS Excel MVP On Fri, 16 Feb 2007 14:58:10 -0800, Suzi wrote: I am studying Excel macros. I have been given an assignment that says: "To better understand the way that macros can be used to simplify our work, look at the Excel toolbars. The buttons represent macros and scripts. See if you can replicate the macros for each of the buttons on the Standard toolbar. If there are any buttons you cannot replicate, explain why." I have not a clue hpw to go about this. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Here is an example of a recorded macro from hitting the New button.
Sub Macro1() ' Macro1 Macro ' Macro recorded 02/16/2007 by Gord Dibben Workbooks.Add End Sub Gord On Fri, 16 Feb 2007 15:20:54 -0800, Gord Dibben <gorddibbATshawDOTca wrote: Suzi What the assigment wants you to do is see if you can write a macro that replicates what each of the buttons does when clicked on. The New File button opens a new workbook. The Open button opens the dialog from where you can select a file to open. The Save button saves the workbook you are working on. Each of these can be replicated by Recording a macro while clicking the button. Go to ToolsMacroRecord new macro. Click on the New button and then Stop Recording. ToolsMacroMacros. Select Macro1 and Edit to see the code just produced. You can follow these steps for each button on the Toolbar. I don't know which ones you can replicate.....most I would assume but only you and your recordings will tell. Gord Dibben MS Excel MVP On Fri, 16 Feb 2007 14:58:10 -0800, Suzi wrote: I am studying Excel macros. I have been given an assignment that says: "To better understand the way that macros can be used to simplify our work, look at the Excel toolbars. The buttons represent macros and scripts. See if you can replicate the macros for each of the buttons on the Standard toolbar. If there are any buttons you cannot replicate, explain why." I have not a clue hpw to go about this. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can you replicate macros for buttons on the Standard toolbar? | Excel Discussion (Misc queries) | |||
How do I duplicate a macro for a button on the Standard Toolbar? | Excel Discussion (Misc queries) | |||
How to get Research button on my standard toolbar? | Excel Discussion (Misc queries) | |||
I can't remove the Email button to the Standard toolbar in Excel | Excel Discussion (Misc queries) | |||
Fax Button on Standard Toolbar | Excel Discussion (Misc queries) |