+ Reply to Thread
Results 1 to 10 of 10

Excel Error Help!

Hybrid View

  1. #1
    Registered User
    Join Date
    01-18-2005
    Posts
    62

    Excel Error Help!

    Dear all,

    I have a code in Excel and whenever I run the program there is an error:

    Method 'Cells' of object '_Worksheet' failed

    and error number is -2147417848

    Could any one can help me or if I have the error number how can I get help on line (which website I can access)

    Thanks a lot!

    Nam

  2. #2
    Mangesh Yadav
    Guest

    Re: Excel Error Help!

    you are using the Cells without the parent worksheet name. Use it as

    Worksheets("Sheet1").Cells

    Mangesh



    "lehainam" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Dear all,
    >
    > I have a code in Excel and whenever I run the program there is an
    > error:
    >
    > Method 'Cells' of object '_Worksheet' failed
    >
    > and error number is -2147417848
    >
    > Could any one can help me or if I have the error number how can I get
    > help on line (which website I can access)
    >
    > Thanks a lot!
    >
    > Nam
    >
    >
    > --
    > lehainam
    > ------------------------------------------------------------------------
    > lehainam's Profile:

    http://www.excelforum.com/member.php...o&userid=18615
    > View this thread: http://www.excelforum.com/showthread...hreadid=395524
    >




  3. #3
    Norman Jones
    Guest

    Re: Excel Error Help!

    Hi Mangesh,

    > you are using the Cells without the parent worksheet name. Use it as
    >
    > Worksheets("Sheet1").Cells


    If Cells were used without explicit qualification, it would represent a
    range object referring to all the cells on the active sheet. Therefore, lack
    of qualification should not, per se, cause an error.

    If the active sheet were not a worksheet, then I would anticipate a 1004
    run-time error rather than the OP's reported error.


    ---
    Regards,
    Norman



    "Mangesh Yadav" <[email protected]> wrote in message
    news:[email protected]...
    > you are using the Cells without the parent worksheet name. Use it as
    >
    > Worksheets("Sheet1").Cells
    >
    > Mangesh
    >
    >
    >
    > "lehainam" <[email protected]> wrote
    > in
    > message news:[email protected]...
    >>
    >> Dear all,
    >>
    >> I have a code in Excel and whenever I run the program there is an
    >> error:
    >>
    >> Method 'Cells' of object '_Worksheet' failed
    >>
    >> and error number is -2147417848
    >>
    >> Could any one can help me or if I have the error number how can I get
    >> help on line (which website I can access)
    >>
    >> Thanks a lot!
    >>
    >> Nam
    >>
    >>
    >> --
    >> lehainam
    >> ------------------------------------------------------------------------
    >> lehainam's Profile:

    > http://www.excelforum.com/member.php...o&userid=18615
    >> View this thread:
    >> http://www.excelforum.com/showthread...hreadid=395524
    >>

    >
    >




  4. #4
    Mangesh Yadav
    Guest

    Re: Excel Error Help!

    Hi Norman,

    quite true indeed. I did a small test, and with a chart as the active sheet
    and using the Cells() without the parent sheet, I get a run time error 1004,
    method cells of object global failed.

    Thanks.

    Mangesh




    "Norman Jones" <[email protected]> wrote in message
    news:e8SzoY#[email protected]...
    > Hi Mangesh,
    >
    > > you are using the Cells without the parent worksheet name. Use it as
    > >
    > > Worksheets("Sheet1").Cells

    >
    > If Cells were used without explicit qualification, it would represent a
    > range object referring to all the cells on the active sheet. Therefore,

    lack
    > of qualification should not, per se, cause an error.
    >
    > If the active sheet were not a worksheet, then I would anticipate a 1004
    > run-time error rather than the OP's reported error.
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "Mangesh Yadav" <[email protected]> wrote in message
    > news:[email protected]...
    > > you are using the Cells without the parent worksheet name. Use it as
    > >
    > > Worksheets("Sheet1").Cells
    > >
    > > Mangesh
    > >
    > >
    > >
    > > "lehainam" <[email protected]> wrote
    > > in
    > > message news:[email protected]...
    > >>
    > >> Dear all,
    > >>
    > >> I have a code in Excel and whenever I run the program there is an
    > >> error:
    > >>
    > >> Method 'Cells' of object '_Worksheet' failed
    > >>
    > >> and error number is -2147417848
    > >>
    > >> Could any one can help me or if I have the error number how can I get
    > >> help on line (which website I can access)
    > >>
    > >> Thanks a lot!
    > >>
    > >> Nam
    > >>
    > >>
    > >> --
    > >> lehainam

    >
    >> ------------------------------------------------------------------------
    > >> lehainam's Profile:

    > > http://www.excelforum.com/member.php...o&userid=18615
    > >> View this thread:
    > >> http://www.excelforum.com/showthread...hreadid=395524
    > >>

    > >
    > >

    >
    >




  5. #5
    Registered User
    Join Date
    01-18-2005
    Posts
    62

    Attachment of Code Error

    Dear all,

    Thanks for your help.

    Please find the attached file for your reference.

    In this Workbook, I am standing in 'JI' sheet I click 'Save Data' to copy data from this worksheet to 'Data' worksheet. The error will occur.

    Your help is appreciated.

    Thanks a lot!

    Nam

  6. #6
    Norman Jones
    Guest

    Re: Excel Error Help!

    Hi Lehainam,

    Few in this newsgroup will open attachments.

    Post your code and indicate where the error is occurring in the code.


    ---
    Regards,
    Norman



    "lehainam" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Dear all,
    >
    > Thanks for your help.
    >
    > Please find the attached file for your reference.
    >
    > In this Workbook, I am standing in 'JI' sheet I click 'Save Data' to
    > copy data from this worksheet to 'Data' worksheet. The error will
    > occur.
    >
    > Your help is appreciated.
    >
    > Thanks a lot!
    >
    > Nam
    >
    >
    > --
    > lehainam
    > ------------------------------------------------------------------------
    > lehainam's Profile:
    > http://www.excelforum.com/member.php...o&userid=18615
    > View this thread: http://www.excelforum.com/showthread...hreadid=395524
    >




  7. #7
    Bob Phillips
    Guest

    Re: Excel Error Help!

    If it is not what Mangesh suggests, post the code for us to see.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Mangesh Yadav" <[email protected]> wrote in message
    news:[email protected]...
    > you are using the Cells without the parent worksheet name. Use it as
    >
    > Worksheets("Sheet1").Cells
    >
    > Mangesh
    >
    >
    >
    > "lehainam" <[email protected]> wrote

    in
    > message news:[email protected]...
    > >
    > > Dear all,
    > >
    > > I have a code in Excel and whenever I run the program there is an
    > > error:
    > >
    > > Method 'Cells' of object '_Worksheet' failed
    > >
    > > and error number is -2147417848
    > >
    > > Could any one can help me or if I have the error number how can I get
    > > help on line (which website I can access)
    > >
    > > Thanks a lot!
    > >
    > > Nam
    > >
    > >
    > > --
    > > lehainam
    > > ------------------------------------------------------------------------
    > > lehainam's Profile:

    > http://www.excelforum.com/member.php...o&userid=18615
    > > View this thread:

    http://www.excelforum.com/showthread...hreadid=395524
    > >

    >
    >




  8. #8
    Norman Jones
    Guest

    Re: Excel Error Help!

    Hi Lehainam,

    Please post your problematic code.


    ---
    Regards,
    Norman



    "lehainam" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Dear all,
    >
    > I have a code in Excel and whenever I run the program there is an
    > error:
    >
    > Method 'Cells' of object '_Worksheet' failed
    >
    > and error number is -2147417848
    >
    > Could any one can help me or if I have the error number how can I get
    > help on line (which website I can access)
    >
    > Thanks a lot!
    >
    > Nam
    >
    >
    > --
    > lehainam
    > ------------------------------------------------------------------------
    > lehainam's Profile:
    > http://www.excelforum.com/member.php...o&userid=18615
    > View this thread: http://www.excelforum.com/showthread...hreadid=395524
    >




+ 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