S
Shaz
Hello
The macro below (pinched from one of the threads) creates dulplicate
worksheets from a list and has served me well over a year.
However I now want to export it to another workbook starting at cell
N4.
I have tried adjusting it accordingly but am failing miserably not
least because it doesn't work with only one name or has any error
trapping when there isn't any names. Can you help.
TIA
Shaz
Sub CreateSheets()
Application.ScreenUpdating = False
For Each cell In Range("a1").CurrentRegion.SpecialCells(xlCellTypeConstants)
Dim SName As String
SName = cell.Value
If SheetExists(SName) = False Then
On Error Resume Next
Sheets("Template").Copy Before:=Sheets("Template")
ActiveSheet.Name = SName
On Error GoTo 0
End If
Next cell
Sheets("Main").Select
Range("A1").Select
Application.ScreenUpdating = True
End Sub
The macro below (pinched from one of the threads) creates dulplicate
worksheets from a list and has served me well over a year.
However I now want to export it to another workbook starting at cell
N4.
I have tried adjusting it accordingly but am failing miserably not
least because it doesn't work with only one name or has any error
trapping when there isn't any names. Can you help.
TIA
Shaz
Sub CreateSheets()
Application.ScreenUpdating = False
For Each cell In Range("a1").CurrentRegion.SpecialCells(xlCellTypeConstants)
Dim SName As String
SName = cell.Value
If SheetExists(SName) = False Then
On Error Resume Next
Sheets("Template").Copy Before:=Sheets("Template")
ActiveSheet.Name = SName
On Error GoTo 0
End If
Next cell
Sheets("Main").Select
Range("A1").Select
Application.ScreenUpdating = True
End Sub