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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top