+ Reply to Thread
Results 1 to 8 of 8

Run Time Error 9 " Script out of range

  1. #1
    Registered User
    Join Date
    12-17-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    81

    Run Time Error 9 " Script out of range

    Dear Friends

    I write below formula, but no luck getting Run time error 9, attached workbook for further information, getting error on underlined area

    Please Login or Register  to view this content.
    Thanks in advance
    Vaibhav
    Attached Files Attached Files

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Run Time Error 9 " Script out of range

    there isn't a sheet called Purchase Order in the purchase order data workbook
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    12-17-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Run Time Error 9 " Script out of range

    Sir,

    i have already set
    Please Login or Register  to view this content.
    in purchase order data workbook

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Run Time Error 9 " Script out of range

    The error is not on this line

    Please Login or Register  to view this content.
    More likely on these two lines

    Please Login or Register  to view this content.

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Run Time Error 9 " Script out of range

    your subscript error occurs here
    Please Login or Register  to view this content.
    because there is no sheet called Purchase Order

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Run Time Error 9 " Script out of range

    As JosephP said the workbook you open does not contain the sheet you are trying to reference.
    Because you have not qualified the Sheets reference you will default to the activeworkbook.

    You can use Thisworkbook reference to resolve that, you will need to use it in all lines of code, or create an object to reference the sheet as you have done for "PO Data".

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Registered User
    Join Date
    12-17-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Run Time Error 9 " Script out of range

    Sir,

    i want to copy
    Please Login or Register  to view this content.
    above range in to the following range
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    12-17-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Run Time Error 9 " Script out of range

    @ Andy Pope

    Working Perfect.

    Thank you so much

+ 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