+ Reply to Thread
Results 1 to 18 of 18

Runtime Error # 424 - Object Required

Hybrid View

ebin charles Runtime Error # 424 - Object... 05-16-2010, 01:30 AM
pike Re: Runtime Error # 424 -... 05-16-2010, 03:50 AM
ebin charles Re: Runtime Error # 424 -... 05-16-2010, 05:39 AM
pike Re: Runtime Error # 424 -... 05-16-2010, 05:57 AM
ebin charles Re: Runtime Error # 424 -... 05-16-2010, 06:08 AM
pike Re: Runtime Error # 424 -... 05-16-2010, 06:12 AM
ebin charles Re: Runtime Error # 424 -... 05-16-2010, 06:34 AM
pike Re: Runtime Error # 424 -... 05-16-2010, 06:54 AM
ebin charles Re: Runtime Error # 424 -... 05-16-2010, 07:04 AM
pike Re: Runtime Error # 424 -... 05-16-2010, 07:11 AM
ebin charles Re: Runtime Error # 424 -... 05-16-2010, 07:17 AM
pike Re: Runtime Error # 424 -... 05-16-2010, 07:29 AM
ebin charles Re: Runtime Error # 424 -... 05-16-2010, 07:37 AM
ebin charles Re: Runtime Error # 424 -... 05-16-2010, 07:54 AM
pike Re: Runtime Error # 424 -... 05-16-2010, 07:41 AM
pike Re: Runtime Error # 424 -... 05-16-2010, 08:27 AM
pike Re: Runtime Error # 424 -... 05-16-2010, 09:49 AM
snb Re: Runtime Error # 424 -... 05-16-2010, 12:47 PM
  1. #1
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Exclamation Runtime Error # 424 - Object Required

    Hey

    I try to run attached excel file which store customer data (Address).
    But I am getting "Runtime Error # 424 - Object Required"
    I Am really confused about it.

    Can u please Help me?

    Regards
    Charles
    Attached Files Attached Files

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Runtime Error # 424 - Object Required

    hi ebin
    Runtime Error # 424 - Object Required
    indicated the userform had an error on opening
    Attached Files Attached Files
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Runtime Error # 424 - Object Required

    You have disabled "Aip.Txt...

    I cannot enter or save the data.

    When I open the form it give error mesg " Invalid Row..." I cannot go further.

    Please help me.

    Regards
    Charles

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Runtime Error # 424 - Object Required

    ebin
    close but no banana
    Attached Files Attached Files

  5. #5
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Runtime Error # 424 - Object Required

    Now I am geting Error # 13

    Type Mismatch..

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Runtime Error # 424 - Object Required

    which line as it the example works we for me

  7. #7
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Runtime Error # 424 - Object Required

    Sir,

    It shows me the error:

    Runtime Error # 13
    Type mismatch...

    This error shows in the line no. 126 Column 1

    I attach the corrected workbook.

    can u help me?

    Regds
    charles
    Attached Files Attached Files

  8. #8
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Runtime Error # 424 - Object Required

    can you copy the line?

  9. #9
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Runtime Error # 424 - Object Required

    There is bold line the below code
    this line shoe error Runtime Error 13, Type mismatch

    is CustomerID.Text = FormatNumber(Cells(r, 1), 0)


    Private Sub CommandButton3_Click()
    Dim r As Integer
    
    r = RowNumber.Text
    r = r + 1
    RowNumber.Text = r
    With Sheets("Sheet1")
        CustomerID.Text = FormatNumber(Cells(r, 1), 0)
        CustomerName.Text = Cells(r, 2)
        City.Text = Cells(r, 3)
        State.Text = Cells(r, 4)
        Zip.Text = Cells(r, 5)
        DateAdded.Text = FormatDateTime(Cells(r, 6), vbShortDate)
    
        DisableSave
        End With
    End Sub

  10. #10
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Runtime Error # 424 - Object Required

    strange it runs ok for me
    change from
    CustomerID.Text = FormatNumber(Cells(r, 1), 0)
    to
    CustomerID.Text = Cells(r, 1).value
    text to number format?

  11. #11
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Runtime Error # 424 - Object Required

    Now i am getting error the same

    Runtime error 13 - type mismatch

    @ line DateAdded.Text = FormatDateTime(Cells(r, 6), vbShortDate)

    Private Sub CommandButton3_Click()
    Dim r As Integer
    
    r = RowNumber.Text
    r = r + 1
    RowNumber.Text = r
    With Sheets("Sheet1")
        CustomerID.Text = Cells(r, 1).Value
        CustomerName.Text = Cells(r, 2)
        City.Text = Cells(r, 3)
        State.Text = Cells(r, 4)
        Zip.Text = Cells(r, 5)
        DateAdded.Text = FormatDateTime(Cells(r, 6), vbShortDate)
    
        DisableSave
        End With
    End Sub

  12. #12
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Runtime Error # 424 - Object Required

    hi ebin
    hmmm..
    for the moment try
    a/. adding some values to the date column
    or
    b/.
    change the code to
      'DateAdded.Text = FormatDateTime(Cells(r, 6), vbShortDate)
    this will disable the line for the moment

  13. #13
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Runtime Error # 424 - Object Required

    my master

    thank you so much. you are so greatful.
    i have learned from so much.

    the format of date in my sheet is not correct. i think.

    otherthan that it is working.

    thank you

    regards
    charles

  14. #14
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Re: Runtime Error # 424 - Object Required

    Sir,

    I need to enter the address of the customer in that form.

    Can I? When i try to enter the contact i cannot.

    Please

    Regards
    Charles

  15. #15
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Runtime Error # 424 - Object Required

    no master my friend
    just an average punter - thanks for posting you question and glad you are learning
    dont forget to change your thread prefix to solved

  16. #16
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Runtime Error # 424 - Object Required

    master here you go
    Attached Files Attached Files

  17. #17
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Runtime Error # 424 - Object Required

    ebin
    dont forget to change the thread prefix to solved as it will help others search for a silimar answer

  18. #18
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Runtime Error # 424 - Object Required

    Depending on the existing situation

    Lastrow= Cells.SpecialCells(xlCellTypeLastCell).Row
    or
    lastrow=cells(rows.count,1).end(xlup).row
    or 
    lastrow=usedrange.rows.count
    or
    lastrow=cless(1,1).currentregion.rows.count
    or 
    lastrow=columns(1).specialcells(2).count
    or 
    lastrow=columns(1).specialcells(4).cells(1).row-1
    But do not use a loop.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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