Results 1 to 3 of 3

Max No of Sheets?

Threaded View

  1. #1
    Registered User
    Join Date
    03-16-2004
    Location
    UK
    MS-Off Ver
    2003
    Posts
    85

    Max No of Sheets?

    I have a macro which changes a worksheet based on each record from another sheet, it then copies the worksheet. I.e. a new sheet is created for each record simpy with...

    Sheets("Proforma").Select
    Sheets("Proforma").Copy after:=Sheets("Proforma").
    tmpsht = Sheets("Proforma").Name & " (2)"
    Sheets(tmpsht).Name = ShtNm  '(ShtNm changes for every data set)
    This works fine but only copies about 30 sheets before the macro stops and says 'copy method of worksheet class failed'. At this point, even if I delete the 30 sheets and manually try and copy the sheet I am unable to.

    Is there a maximum number of sheets that I can have?
    Every time I copy a named range is being created, is it something to do with a limited number of names?
    Other?

    Grateful for any advice
    Last edited by VBA Noob; 01-19-2009 at 09:35 AM.
    Phil

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1