Kylie Thomas
asked on
How do i make a button create 2 new sheets?
I want a button on excel to create 2 new pages, but they will just be hidden on the back end then will unhide and add information from the main page when i press the button? Is this possible? I know there is this code if you do a checkbox:
Private Sub CheckBox1_Click()
Sheets("Sheet1").Visible = CheckBox1.Value
End Sub
But I am having trouble doing the similar thing with a button instead. Can you help?
Private Sub CheckBox1_Click()
Sheets("Sheet1").Visible = CheckBox1.Value
End Sub
But I am having trouble doing the similar thing with a button instead. Can you help?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks this will work!
Pleased to help
There is a type variable to be able to change the number of parameters calling the function without changing all the functions call
There is a function to create the button
And finally the sub to unhide the sheet
Open in new window