Results 1 to 6 of 6

Run-Time error 424 - Object required

Threaded View

  1. #1
    Registered User
    Join Date
    09-04-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    7

    Run-Time error 424 - Object required

    Hallo guys.

    I'v got a pretty newbie problem, but I have absolutly no idea about how to solve it...

    I get the errer "Run-time error 424 - Object required".

    I'm trying to type and execute this code:

    Sub Delay_of_products()
        NumberDelayed = 0
        For i = 2 To 11
            If Sheet1.Cells(i, 2) < Sheet1.Cells(i, 3) Then
                Sheet1.Cells(i, 4) = "Delayed"
                NumberDelayed = NumberDelayed + 1
            ElseIf Sheet1.Cells(i, 2) > Sheet1.Cells(i, 3) + 10 Then
                Sheet1.Cells(i, 4) = "Very early"
            Else
                Sheet1.Cells(i, 4) = "On Time"
            End If
        Next
        MsgBox "There are " & NumberDelayed & " delayed products."
    End Sub
    It marks the line "If Sheet1.Cells(i, 2) < Sheet1.Cells(i, 3) Then" (On of the first).

    I really hope that you can help me, so I can begin my trip into the VBA world, open minded and un-frustrated.. :-)

    Thanks,
    Last edited by jeffreybrown; 09-04-2012 at 01:24 PM.

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