+ Reply to Thread
Results 1 to 8 of 8

"Method 'Range' of object '_Worksheet' failed" error in Windows Script Host

  1. #1
    Registered User
    Join Date
    06-16-2010
    Location
    new york ny
    MS-Off Ver
    Excel 2003
    Posts
    4

    "Method 'Range' of object '_Worksheet' failed" error in Windows Script Host

    Hi, I have automated project with several modules and I am unable to locate or find cause for this error in code,

    Detailed description as Windows message box is as below, can someone point where this occuring or possible solutions?

    Detailed message
    ================
    Windows Script Host

    Script: x:\...\xxx.vbs (This vbs call .xls modules and pass parameters)
    Line: 9
    Char: 1
    Error: Method 'Range' of object '_Worksheet' failed
    Code: 800A03EC
    Source: XXXDB

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: "Method 'Range' of object '_Worksheet' failed" error in Windows Script Host

    Without seeing the code, not specifically, but I would guess you are trying to refer to a named range that does not exist on the specified sheet.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    06-16-2010
    Location
    new york ny
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: "Method 'Range' of object '_Worksheet' failed" error in Windows Script Host

    problem is with this error message I am unable to find specific code, any recommedations to trace code? It was working fine before and suddenly it started giving this error and as soon I say ok on msg box it exit .vbs

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: "Method 'Range' of object '_Worksheet' failed" error in Windows Script Host

    What is line 9 of your vbscript?

  5. #5
    Registered User
    Join Date
    06-16-2010
    Location
    new york ny
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: "Method 'Range' of object '_Worksheet' failed" error in Windows Script Host

    Please Login or Register  to view this content.
    Last edited by jikenj; 06-16-2010 at 02:19 PM.

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: "Method 'Range' of object '_Worksheet' failed" error in Windows Script Host

    You'll need to review the Ane sub or function in the ThisWorkbook module of the workbook you are manipulating.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: "Method 'Range' of object '_Worksheet' failed" error in Windows Script Host

    jikenj, please take a few minutes to read the forum ules, and then edit your post to add CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Registered User
    Join Date
    06-16-2010
    Location
    new york ny
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: "Method 'Range' of object '_Worksheet' failed" error in Windows Script Host

    I apologize about CODE tags, will read through rules and update as soon possible
    Last edited by jikenj; 06-16-2010 at 03:50 PM.

+ 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