Adding Excel Worksheets

  • Thread starter Brent Stevenson
  • Start date
B

Brent Stevenson

When using this code "Worksheets.Add after:=Worksheets(1)" to add a
worksheet I get an "Application-defined or object-defined error". I have the
MS Excel 11.0 Object Library referenced. If I remove the
"after:=Worksheets(1)" code the worksheet gets inserted in place of the
first worksheet.

Thanks in advance.
 
Top