+ Reply to Thread
Results 1 to 2 of 2

Script Error

  1. #1
    Mike
    Guest

    Script Error

    A user at my office has been using the same Excel spreadsheet for quite some
    time. Recently, she has been receiving a Run-time error when attempting to
    print the spreadsheet. The error is as follows:

    Run-time Error ‘9’:
    Subscript out of range

    When in debug the following line is highlighted:

    Sheets(Array("MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY")). _
    Select

    Any idea what could be causing the problem?

  2. #2
    Harald Staff
    Guest

    Re: Script Error

    Hi

    One or more sheets is renamed, deleted or hidden. Sheets with those exact
    names must all exist and be selectable in the file.

    HTH. Best wishes Harald

    "Mike" <[email protected]> skrev i melding
    news:[email protected]...
    > A user at my office has been using the same Excel spreadsheet for quite

    some
    > time. Recently, she has been receiving a Run-time error when attempting

    to
    > print the spreadsheet. The error is as follows:
    >
    > Run-time Error '9':
    > Subscript out of range
    >
    > When in debug the following line is highlighted:
    >
    > Sheets(Array("MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY")). _
    > Select
    >
    > Any idea what could be causing the problem?




+ 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