+ Reply to Thread
Results 1 to 3 of 3

Subscript error from Selecting array of sheets

  1. #1
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Subscript error from Selecting array of sheets

    Please Login or Register  to view this content.
    A numerical value is selected in C136 that makes visible a sheet tab witht he same numerical value.

    The Sheets Array was working but since i added an option via a few checkboxes on a form to select a variable of range/s on the selected sheet as part of the PrintRange, it errors out now.


    A part of the code to set the PrintRange from the form is below:
    Please Login or Register  to view this content.
    Last edited by coreytroy; 12-10-2012 at 12:47 AM. Reason: spelling mistake

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Subscript error from Selecting array of sheets

    Try this to convert the numerical value to a string.

    Sheets(Array("COVER", CStr(Sheet1.Range("C136").Value))).Select

  3. #3
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Re: Subscript error from Selecting array of sheets

    Thanks Alpha, will give that a go tomorrow.

+ Reply to Thread

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