Hello, I am attempting to do the following:
Note: this file will be used by many people, so need to make sure the "save to desktop" will work for all users.
Here is the code I've got thus far, but it copies all worksheets ending in "-PP" to separate worksheets. It also doesn't copy as values and has no "saving functionality".
Any thoughts? Thank you in advance for any guidance.
- Copy all worksheets whose name ends in "-PP" into a new workbook (formats, values - NO formulas)
- Open a pop-up box in the new workbook that asks the user to enter the version number
- Open the save as window and save the file to the user's desktop as "[text in cell $A$1 of 'Setup' worksheet]_Version [number entered in pop-up]"
Note: this file will be used by many people, so need to make sure the "save to desktop" will work for all users.
Here is the code I've got thus far, but it copies all worksheets ending in "-PP" to separate worksheets. It also doesn't copy as values and has no "saving functionality".
Any thoughts? Thank you in advance for any guidance.
Code:
Sub Copy_Sheets()
Dim Sh As Worksheet
On Error Resume Next
For Each Sh In ActiveWorkbook.Sheets
If Right(Sh.Name, 3) = "-PP" Then
Sh.Copy
End If
Next Sh
On Error GoTo 0
End Sub