Easy way to add a button in excel?

debralee

New Member
Joined
Dec 30, 2016
Messages
11
I created a spreadsheet form in excel and want to add a click here button on the top of the spreadsheet that will automatically create a duplicate new blank field sheet for end users. I know its easier to just duplicate a sheet but I need an easy button for the end users.
Anyone anyone Bueler?

Please help
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
19,343
Office Version
  1. 2021
Platform
  1. Windows
You want to click a button and create a new empty worksheet is that correct?
If so create a button and put this script in the button.

Code:
Sub Add_New_Sheet()
Sheets.Add(after:=Sheets(Sheets.Count)).Name = "New"
End Sub
 
Upvote 0

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
19,343
Office Version
  1. 2021
Platform
  1. Windows
I was not sure what this means:

"will automatically create a duplicate new blank field sheet"

You want to duplicate the active sheet but you want it blank.

Well a blank sheet is just a new sheet. So my script above give you a new sheet.
 
Upvote 0

jolivanes

Well-known Member
Joined
Sep 5, 2004
Messages
2,246
Office Version
  1. 2013
  2. 2007
Platform
  1. Windows
I think I see it slightly different. If that is so then we need to know which cells and/or ranges need clearing.
 
Upvote 0

debralee

New Member
Joined
Dec 30, 2016
Messages
11
You want to click a button and create a new empty worksheet is that correct?
If so create a button and put this script in the button.

Code:
Sub Add_New_Sheet()
Sheets.Add(after:=Sheets(Sheets.Count)).Name = "New"
End Sub

Hi Thank you!
I'm sorry for not being more clear.

I created a master form that needs to be filled out.
I want end user to be able to fill the form in, then hit a button that will create a new copy of my Master form to fill in another form. And I'm looking to have the "Add New Form button" available on all pages.

I'm just learning script

Thanks for you help.
 
Upvote 0

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
19,343
Office Version
  1. 2021
Platform
  1. Windows
This script will make you a copy of the Sheet named "Master"

Code:
Sub Copy_Master()
Sheets("Master").Copy after:=Sheets(Sheets.Count)
ActiveSheet.Name = "New" & Sheets.Count
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,191,211
Messages
5,985,298
Members
439,956
Latest member
FrazzledCat

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top