I receive a report every week that contains details about test scripts. Each week, I've been breaking out each individual script onto separate tabs entitled after the script. There are currently 50+ scripts. While not overly time consuming, it is annoying. I need help creating a script that:
1. Creates a new worksheet entitled script A
2. Copies script A data from the master worksheet and pastes it onto the script A worksheet
I've figured out how to create a worksheet named after each script ID, but I'm struggling with getting the data relevant to just that script.
Here's what I'm using to create the worksheets:
1. Creates a new worksheet entitled script A
2. Copies script A data from the master worksheet and pastes it onto the script A worksheet
I've figured out how to create a worksheet named after each script ID, but I'm struggling with getting the data relevant to just that script.
Here's what I'm using to create the worksheets:
VBA Code:
Sub CreateSheets()
Dim rng As Range
Dim cell As Range
On Error GoTo ErrorHandling
Set rng = Application.InputBox(Prompt:="Select Cell Range:", Title:="Create Sheets", Default:=Selection.Address, Type:=8)
For Each cell In rng
If cell <> "" Then
Sheets.Add.Name = cell
End If
Next cell
ErrorHandling:
End Sub