Consulting

Results 1 to 6 of 6

Thread: Run-time error 438: Object doesn't support this property or method

  1. #1

    Run-time error 438: Object doesn't support this property or method

    Please i need some help on this i am learner in this field. this is the issue i am having.
    Screenshot (13).jpg



    Sub Add_Product_List()


    Dim sh As Worksheet
    Set sh = ThisWorkbook.Sheets("Product_Master")

    Dim I As Integer

    Me.Cmb_Product.Clear
    Me.Cmb_Product.AddItem ""

    For I = 2 To Application.Worksheetsfunction.CountA(sh.Range("A:A"))
    Me.Cmb_Product.AddItem sh.Range("B" & I)

    Next I

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,711
    Location
    Worksheetsfunction
    
    No 's'


    It's WorksheetFunction


    https://docs.microsoft.com/en-us/off...ksheetfunction
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Sub Add_Product_List()
    With Me.Cmb_Product
        .Clear
        .List = Sheets("Product_Master").Range(Cells(2, "B"), Cells(Rows.Count, "B").End(xlUp))
    End With
    End Sub
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  4. #4

  5. #5
    Great the answer worked correctly. thanks.

  6. #6
    hi please i want my application to give me the rate if a product, transaction type and quantity is selected but if i run the app. this is the result.
    Run time error '13':
    Type mismatch
    Screenshot (14).jpg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •