+ Reply to Thread
Results 1 to 5 of 5

VBA Create Sheet Arrays

  1. #1
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    VBA Create Sheet Arrays

    Hi, I wonder whether someone could help me please.

    I'm using the code belwo to automatically create new worksheets within my Excel workbook and run a number of macros.

    Please Login or Register  to view this content.
    The problem I have is thast I'd like to create some more sheets and addb them to the first part of the code, but I'm receiving the error "Too many line continuations'.

    The error is self explanatory, but I'm not sure how to overcome this.

    I just wondered whether someone could possibly look at this please and offer some guidance on how I may overcome this.

    Many thanks and kind regards

    Chris

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: VBA Create Sheet Arrays

    Put more than one sheet on a line:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Create Sheet Arrays

    Hi @romperstomper, thank you so much for takng the time to come back to me with this, it is very much appreciated and it works great.

    All the best and kind regards.

    Chris

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: VBA Create Sheet Arrays

    Glad to help. By the way, if you put a list of sheets in a named range somewhere, your code can simply read the values from there. That way if you need to add or remove sheets, the code remains the same - you just update the range.

  5. #5
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Create Sheet Arrays

    Hi @rompserstomper, thank you for the tip that's really useful.

    Kin Regards and many thanks

    Chris

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] New to arrays-Create two column array with different column order to sheet?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2013, 01:37 AM
  2. Create 2-d line chart using arrays
    By RowanB in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 01-18-2012, 05:40 AM
  3. How to create constant arrays
    By bluebottle in forum Excel General
    Replies: 5
    Last Post: 02-09-2010, 01:30 PM
  4. Using two arrays to create another
    By Alan_JS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2010, 04:34 AM
  5. Using Arrays to create a 'top 10 list'
    By Stevedarby02 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-08-2008, 09:57 AM

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