Results 1 to 9 of 9

Run-time error '424' Object Required

Threaded View

  1. #1
    Registered User
    Join Date
    01-28-2015
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2007 and 2010
    Posts
    6

    Run-time error '424' Object Required

    Hello everyone

    I'd like to say thanks in advance for any help.

    In my project I have a search function that has to search a row for a number and if the number is found, it should return all data written on the spreadsheet row to respective text and comboboxes on the userform, but I recieve a run-time error 424 object required error and the line that gets highlighted is *For each c in DataBase.range("C:C").cells* and I don't know why. Here is my piece of code below. DataBase is the name of the spreadsheet which must be searched and the searched numbers are always in column C. If a different approach can be used please help me with them. I hope I was clear enough.


    Private Sub cmdSearch_Click()
        
        For Each c In DataBase.Range("C:C").Cells
            If c.Value <> "" Then
                If cboJobCardNo.Value = c.Value Then
                
                    txtRequester.Value = c.Offset(0, -2).Value
                    txtDate.Value = c.Offset(0, -1).Value
                    cboDept.Value = c.Offset(0, 1).Value
                    cboFacility.Value = c.Offset(0, 2).Value
                    cboEquip.Value = c.Offset(0, 3).Value
                    cboItem.Value = c.Offset(0, 4).Value
                    cboProbType.Value = c.Offset(0, 5).Value
                    txtProbDescription.Value = c.Offset(0, 6).Value
                
                    MsgBox "Now you can update.", vbInformation, "UPDATE ENTRY"
                Else
                End If
            Else
            Exit Sub
            End If
        Next
    
    End Sub
    zbor I apologize for that...I thought using [code] before and after the code would work...I am still new so am really sorry.
    Last edited by Touch; 02-04-2015 at 07:40 AM. Reason: Solved

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Simple Calendar pop up macro --> error Run-time error '424': Object required
    By am_hawk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 10:38 AM
  2. VBA - “Run-time error 424: object required”
    By randiba in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2013, 07:28 AM
  3. Run-Time error 424 - Object required
    By Mr_Knows_Nothing in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2012, 01:19 PM
  4. Run-Time Error 424 - Object Required
    By SpottyTash in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2005, 09:05 AM
  5. Run-time error '424': Object required
    By ez_cali in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-21-2005, 03:52 AM

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