LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Problem adding multiple worksheets

I'm using this to add mulitple work sheets

Set ws = Worksheets.Add
ws.Name = sheetName ' error line

I am pulling sheetName from another worksheet and am getting an error when
it goes to make the 3rd worksheet.

The error message:
Runtime error '1004'
Application defined or object defined error

I'm not sure what the problem is since it makes two worksheets fine and
fails on the third.

These are the worksheet names it creates in this order.
AJ SILBERMAN & CO
AMCON DISTRIBUTING CO - OMAHA
AMCON DISTRIBUTING - SPRINGFIELD
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding multiple worksheets using a table revdeacon Excel Worksheet Functions 0 November 2nd 07 04:24 PM
Adding a Row to Multiple Worksheets at Once Jamie Excel Worksheet Functions 3 June 21st 07 02:20 AM
Adding multiple worksheets tee Excel Worksheet Functions 2 August 19th 06 12:35 AM
Adding multiple worksheets Craig Excel Worksheet Functions 1 July 6th 05 07:21 PM
adding certain cells in multiple worksheets in multiple workbooks Stephen via OfficeKB.com Excel Worksheet Functions 1 February 4th 05 08:31 PM


All times are GMT +1. The time now is 08:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"