S
Stuart
In the following I receive an 'Object required' error
on the line 'Set ws2 etc'. Why is this, please?
For Each ws In Workbooks(SourceWorkbook).Worksheets
With ws
If Not (UCase(.Name) = "MASTER") Then
With wb
Set ws2 = wb.Worksheets("MASTER").Copy(After:= _
wb.Sheets(wb.Sheets.Count))
ws2.Name = ws.Name
etc
The copy is made when stepping through, but only after the
error message is displayed.
Regards.
on the line 'Set ws2 etc'. Why is this, please?
For Each ws In Workbooks(SourceWorkbook).Worksheets
With ws
If Not (UCase(.Name) = "MASTER") Then
With wb
Set ws2 = wb.Worksheets("MASTER").Copy(After:= _
wb.Sheets(wb.Sheets.Count))
ws2.Name = ws.Name
etc
The copy is made when stepping through, but only after the
error message is displayed.
Regards.