Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default How do I replicate a macro for each button on standard toolbar?

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How do I replicate a macro for each button on standard toolbar?

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How do I replicate a macro for each button on standard toolbar?

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
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 can you replicate macros for buttons on the Standard toolbar? Suzi Excel Discussion (Misc queries) 1 February 16th 07 09:53 PM
How do I duplicate a macro for a button on the Standard Toolbar? Suzi Excel Discussion (Misc queries) 1 February 13th 07 11:38 PM
How to get Research button on my standard toolbar? justpeeking89 Excel Discussion (Misc queries) 0 March 26th 06 11:50 PM
I can't remove the Email button to the Standard toolbar in Excel Valerie Dyet Excel Discussion (Misc queries) 0 December 16th 05 08:10 PM
Fax Button on Standard Toolbar Bruce Excel Discussion (Misc queries) 1 April 19th 05 10:35 PM


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