+ Reply to Thread
Results 1 to 3 of 3

424 - Object required pop-up

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    MICHIGAN, USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    424 - Object required pop-up

    I am using the following code in excel to auto stamp the time in column B when an action is taken in column A. I found the code in this forum and it is awesome (Thank you!). The problem I am having is when I change any data in any other column on the spreadsheet, c, d, e, etc. When I put data in any of these columns and hit enter, this 424 - object required message pops-up. If I click OK, it disappears, but I am planning to give the spreadsheet to other people to use so I need to get this fixed. What do I need to change in this code to stop the message from appearing?

    Please Login or Register  to view this content.
    Private Sub Worksheet_Change(ByVal Target As Range)

    Dim rngLoopRange As Range
    On Error GoTo ErrorHandler
    Application.EnableEvents = False
    For Each rngLoopRange In Intersect(Target, Range("A2:A" & Rows.Count))
    rngLoopRange.Offset(0, 1) = Time
    Next rngLoopRange

    CleanExit:
    Application.EnableEvents = True
    Exit Sub

    ErrorHandler:
    MsgBox Err & " - " & Err.Description
    Resume CleanExit

    End Sub
    Please Login or Register  to view this content.
    Thank you for your help.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: 424 - Object required pop-up

    VICTORIE,

    Welcome to the forum!
    In the future, please wrap your code in code tags. See the forum rules #3 (link in my sig) for how.
    As to your question, this code should work for you:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    05-18-2012
    Location
    MICHIGAN, USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: 424 - Object required pop-up

    Thank you so much tigeravatar, it worked perfectly!

+ 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