I have a macro that creates a copy of 11 sheets within a workbook and creates a new workbook for each of the 11 sheets. The macro then saves each workbook with a specific name e.g. Bob, John etc etc.
What i'd like is at the start for a text box to come up so that the user can define the first part of the name so that each new workbook isn't just called Bob and John. The user can say I want it to be 11/10/2017 Work for Bob. Is there a way to define this?
I have the following code to create and save a copy to the desktop:
I assume that you have to define something at the beginning and then put it in the file name where "Bob" is.
Thanks for any help.
What i'd like is at the start for a text box to come up so that the user can define the first part of the name so that each new workbook isn't just called Bob and John. The user can say I want it to be 11/10/2017 Work for Bob. Is there a way to define this?
I have the following code to create and save a copy to the desktop:
Code:
Sub CopyBob()'
' Copy Macro
' copies 1 workers sheet and opens it in a new sheet
'
'
Sheets("Bob").Select
Sheets("Bob").Copy
Application.WindowState = xlMaximized
Range("B4").Select
Columns("AV:BA").Select
Selection.Delete Shift:=xlToLeft
ActiveWorkbook.SaveAs "h:\desktop\Bob"
ActiveWorkbook.Close False
End Sub
I assume that you have to define something at the beginning and then put it in the file name where "Bob" is.
Thanks for any help.
Last edited: