ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Macro Help (https://www.excelbanter.com/excel-discussion-misc-queries/132355-macro-help.html)

Maggie

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?


Gary''s Student

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?



Maggie

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.



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

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