D
Daniel
is there anyway to create a clone of an excel sheet in vba?
Dave Peterson said:Just a typo that won't matter if it's running against the activeworkbook,
but
could matter if the workbook isn't active...
Sub Tester
With ActiveWorkbook
.Sheets("MySheet").Copy After:=.Sheets(Sheets.Count)
End With
End Sub
is missing a dot in front of sheets.count.
Sub Tester
With ActiveWorkbook
.Sheets("MySheet").Copy After:=.Sheets(.Sheets.Count)
End With
End Sub