Saving a copy of a worksheet

  • Thread starter Thread starter Pat
  • Start date Start date
P

Pat

How do you save a worksheet via a command button which will save and name it
by increments of one. For example Sheet1 is saved and named Sheet2, Sheet1
is saved again and named Sheet3, and so on.

Any help is most appreciated.
Pat
 
Perhaps first you need to get your terms right. Only Workbooks are saved.
Worksheets are "within" workbook(s). Come back...
 
Sorry I did not make myself clear, I want to create a copy(s) of a worksheet
whithin a workbook.
 
On Sheet 1 create a Command Button and name it cmdAdd. Right click on the
sheet tab named Sheet 1, select "View Code" and add the following code;
Private Sub cmdAdd_Click()
Sheets("Sheet1").Select
Sheets.Add
End Sub
 
Thank you for helping me out.

Regards
Pat

Gerald Evans said:
On Sheet 1 create a Command Button and name it cmdAdd. Right click on the
sheet tab named Sheet 1, select "View Code" and add the following code;
Private Sub cmdAdd_Click()
Sheets("Sheet1").Select
Sheets.Add
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top