#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Macro Help

I am trying to do a macro with a button. I want to be able to click
the button to make another a duplicate of the same worksheet. Is
there a way to do that?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Macro Help

First create the macro in a standard module:

Sub yetanother()
Sheets("mysheet").Copy After:=Sheets(1)
End Sub

Then View Toolbars Forms and create the button and assign the macro to it.
--
Gary's Student
gsnu200708


"Maggie" wrote:

I am trying to do a macro with a button. I want to be able to click
the button to make another a duplicate of the same worksheet. Is
there a way to do that?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Macro Help

On Feb 26, 12:08 pm, Gary''s Student
wrote:
First create the macro in a standard module:

Sub yetanother()
Sheets("mysheet").Copy After:=Sheets(1)
End Sub

Then View Toolbars Forms and create the button and assign the macro to it.
--
Gary's Student
gsnu200708



"Maggie" wrote:
I am trying to do a macro with a button. I want to be able to click
the button to make another a duplicate of the same worksheet. Is
there a way to do that?- Hide quoted text -


- Show quoted text -


I tried that and it did not work. I also need to have the same format
brought over to each copy.

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
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM


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