+ Reply to Thread
Results 1 to 4 of 4

Run Time 424 Error - new to VBA

  1. #1
    Registered User
    Join Date
    08-25-2010
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Run Time 424 Error - new to VBA

    Hello -

    My macro's objective is to determine if any 1 of 21 string values exists in a list passed to it. If yes, set the cell to the right to '1'.

    I defined 1 range (= list passed in, starting with first value and looping to end of list).

    I individually coded each of the 21 possible string values as I was not sufficiently skilled to 'double range'.


    Using code below, I am getting 'Run Time 424 - Object Required'

    Please Login or Register  to view this content.
    Where the code breaks, I have tried the following:

    Set Products = Worksheet.Range("B13")
    Products = Range("B13")
    Products = Range("B13").Value
    Set Products = Range("B13").Value
    Set Products = Range("B13").Select
    Products = Range("B13").Select

    I AM on IE6. There are no pivot charts involved.

    What am I doing wrong? Thanks.
    Attached Files Attached Files
    Last edited by Snoopy2010; 08-31-2010 at 05:04 PM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Run Time 424 Error - new to VBA

    You need to specify which worksheet you're talking about.

    Try:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-25-2010
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Run Time 424 Error - new to VBA

    I am looking at the register tab. The macro is the 'test' macro. I modified as suggested. I'm getting an error that I got previously and had corrected -

    Run Time Error '13' - Type Mismatch

    I believe a 'range' is a type of object and that the 'Set' command is used only in relationship to objects. All cells involved are text (string) cells. I am not sure what the problem is.

    Do I need a new thread for this?

  4. #4
    Registered User
    Join Date
    08-25-2010
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Run Time 424 Error - new to VBA

    Please Login or Register  to view this content.

+ 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