+ Reply to Thread
Results 1 to 2 of 2

Select multiple sheets that are stored in an array (VBA)

  1. #1
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Select multiple sheets that are stored in an array (VBA)

    I have stored sheet names in an array. I want to select those sheets together and then print to PDF.

    My sheet names are stored in the "jsheets" array and I am trying the following code:

    Please Login or Register  to view this content.
    I also tried the following based on a recorded macro:

    Please Login or Register  to view this content.
    Any suggestions?
    pls click the star if you liked my answer!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Select multiple sheets that are stored in an array (VBA)

    Have you tried:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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] How to Deselect Multiple Ranges on Multiple Sheets After Select & Clear
    By catnam in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-20-2014, 02:12 PM
  2. [SOLVED] Select Multiple Worksheets based on Cell Array
    By jwbehm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2012, 05:16 PM
  3. [SOLVED] Select Sheets based on variable array -ERROR 9 Subscript out of range
    By airmiles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2012, 07:28 PM
  4. Sorting an array-multiple select seems uncontrollable
    By Peter Rooney in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2006, 12:20 PM
  5. [SOLVED] Select sheets from an array for printing
    By bennyob in forum Excel General
    Replies: 2
    Last Post: 11-24-2005, 09:10 AM
  6. [SOLVED] Select Multiple sheets
    By Steve in forum Excel General
    Replies: 1
    Last Post: 10-07-2005, 02:05 PM
  7. Select multiple listbox items and pass to an array
    By golzilla in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2005, 05:49 PM

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