+ Reply to Thread
Results 1 to 4 of 4

Run-time error '1004,

Hybrid View

  1. #1
    DaveyJones
    Guest

    Run-time error '1004,

    Run-time error '1004,
    Select Method of Range class failed.

    Can anyone tell me why, the code I was using is

    Sheets("Code").Select
    Range("B1").Select ####(error is apparently here)####

    If ActiveCell = "1" Then GoTo Inputdata
    End

    and the cell Code!B1 contains

    =IF(ISERROR(Data!F1),"1","0")

    The help, as usual, tells me diddly squat....
    Cheers


    --
    Dave

    --
    Dave

  2. #2
    Norman Jones
    Guest

    Re: Run-time error '1004,

    Hi Davey,

    Where is your code housed?


    ---
    Regards,
    Norman



    "DaveyJones" <dmlong05/yougettheidea/@hotmail.co.uk> wrote in message
    news:903CE3AF-D408-4938-B06D-A41B906A8651@microsoft.com...
    > Run-time error '1004,
    > Select Method of Range class failed.
    >
    > Can anyone tell me why, the code I was using is
    >
    > Sheets("Code").Select
    > Range("B1").Select ####(error is apparently here)####
    >
    > If ActiveCell = "1" Then GoTo Inputdata
    > End
    >
    > and the cell Code!B1 contains
    >
    > =IF(ISERROR(Data!F1),"1","0")
    >
    > The help, as usual, tells me diddly squat....
    > Cheers
    >
    >
    > --
    > Dave
    >
    > --
    > Dave




  3. #3
    DaveyJones
    Guest

    Re: Run-time error '1004,

    Yeah, I've just figured that one out myself, it's in a different worksheet.
    If you type a GoTo command for a subroutine in one worksheet, does it look in
    another worksheet for it, cos I want all this to run in one go.
    --
    Dave


    "Norman Jones" wrote:

    > Hi Davey,
    >
    > Where is your code housed?
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "DaveyJones" <dmlong05/yougettheidea/@hotmail.co.uk> wrote in message
    > news:903CE3AF-D408-4938-B06D-A41B906A8651@microsoft.com...
    > > Run-time error '1004,
    > > Select Method of Range class failed.
    > >
    > > Can anyone tell me why, the code I was using is
    > >
    > > Sheets("Code").Select
    > > Range("B1").Select ####(error is apparently here)####
    > >
    > > If ActiveCell = "1" Then GoTo Inputdata
    > > End
    > >
    > > and the cell Code!B1 contains
    > >
    > > =IF(ISERROR(Data!F1),"1","0")
    > >
    > > The help, as usual, tells me diddly squat....
    > > Cheers
    > >
    > >
    > > --
    > > Dave
    > >
    > > --
    > > Dave

    >
    >
    >


  4. #4
    Norman Jones
    Guest

    Re: Run-time error '1004,

    Hi Davey,

    Try moving your code to a Standard module.

    Normally, a sheet module shoould only house worksheet event procedures.


    ---
    Regards,
    Norman



    "DaveyJones" <dmlong05/yougettheidea/@hotmail.co.uk> wrote in message
    news:48804C26-33BD-4EBA-A647-477C684B031C@microsoft.com...
    > Yeah, I've just figured that one out myself, it's in a different
    > worksheet.
    > If you type a GoTo command for a subroutine in one worksheet, does it look
    > in
    > another worksheet for it, cos I want all this to run in one go.
    > --
    > Dave
    >
    >
    > "Norman Jones" wrote:
    >
    >> Hi Davey,
    >>
    >> Where is your code housed?
    >>
    >>
    >> ---
    >> Regards,
    >> Norman
    >>
    >>
    >>
    >> "DaveyJones" <dmlong05/yougettheidea/@hotmail.co.uk> wrote in message
    >> news:903CE3AF-D408-4938-B06D-A41B906A8651@microsoft.com...
    >> > Run-time error '1004,
    >> > Select Method of Range class failed.
    >> >
    >> > Can anyone tell me why, the code I was using is
    >> >
    >> > Sheets("Code").Select
    >> > Range("B1").Select ####(error is apparently here)####
    >> >
    >> > If ActiveCell = "1" Then GoTo Inputdata
    >> > End
    >> >
    >> > and the cell Code!B1 contains
    >> >
    >> > =IF(ISERROR(Data!F1),"1","0")
    >> >
    >> > The help, as usual, tells me diddly squat....
    >> > Cheers
    >> >
    >> >
    >> > --
    >> > Dave
    >> >
    >> > --
    >> > Dave

    >>
    >>
    >>




+ 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