+ Reply to Thread
Results 1 to 9 of 9

Automation error on Combo box

  1. #1
    Registered User
    Join Date
    03-30-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    63

    Automation error on Combo box

    HI There Gurus

    Need some help, As I am having "writers Block" on an error I am getting.

    I have Combo Boxes on my "TEMPLATE" Worksheet which displays a list from the "Product"(Combobox2) or "Packaging" (Combobox3) Tabs. YOu have to select the cell where the info is to be stored. Then have the option to search, or partially search for the product, then be able to select it. The value will then be stored and the combo box will reset to empty.

    I always worked, but not sure if it is an Office365 error or me.

    I get the following Error:

    Run-time error '-2146232576 (80131700)':
    Automation error

    Then the debugger takes met to this section
    Please Login or Register  to view this content.
    Thanks very much
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Automation error on Combo box


    Hi,

    your computer does not have this ActiveX (or restricted access), to see with your IT ...

    As a reminder you can use a VBA Collection rather than an external ActiveX.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Automation error on Combo box


    Or better than any VBA Collection or any Windows ArrayList just use an array variable combined with the VBA Filter function ...

  4. #4
    Registered User
    Join Date
    03-30-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: Automation error on Combo box

    Good morning Marc

    Thank you so much for the insite.
    Unfortunately I am not as Skilled up on VBA for the #3 Comment, but surly going to investigate and research that option

    Thanks

  5. #5
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,381

    Re: Automation error on Combo box

    Are you working with a Mac PC?

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Re: Automation error on Combo box


    Quote Originally Posted by ronettes View Post
    Unfortunately I am not as Skilled up on VBA for the #3 Comment
    A Filter VBA function sample demonstration to update to your worksheet module :

    PHP Code: 
    Sub FilterList(CBox As ComboBoxWs As Worksheet)
        
    CBox.List = Filter(Application.Transpose(Ws.Range("A2"Ws.[A1].End(xlDown))), CBoxTrue1)
        
    Application.EnableEvents False
        CBox
    .DropDown
        Application
    .EnableEvents True
    End Sub

    Private Sub ComboBox2_Change()
        
    FilterList ComboBox2Sheet4
    End Sub

    Private Sub ComboBox2_Click()
        If 
    Not Intersect(ActiveCell, [A8:A17]) Is Nothing Then
            ActiveCell 
    ComboBox2
            ComboBox2 
    ""
        
    End If
    End Sub

    Private Sub ComboBox2_DropButtonClick()
        
    FilterList ComboBox2Sheet4
    End Sub

    Private Sub ComboBox3_Change()
        
    FilterList ComboBox3Sheet7
    End Sub

    Private Sub ComboBox3_Click()
        If 
    Not Intersect(ActiveCell, [A24:A33]) Is Nothing Then
            ActiveCell 
    ComboBox3
            ComboBox3 
    ""
        
    End If
    End Sub

    Private Sub ComboBox3_DropButtonClick()
        
    FilterList ComboBox3Sheet7
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,210

    Re: Automation error on Combo box

    That errors occurs mostly when Net Framework 3.5 is not installed...
    Check here
    Check here
    AFAIK You specifically need the 3.5 version to use System.Collections.ArrayList
    Last edited by sintek; 10-24-2022 at 06:18 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  8. #8
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Automation error on Combo box


    But the question is : why using an useless ArrayList for this purpose ?!

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,210

    Re: Automation error on Combo box

    Very True Marc...Agreed...
    For that matter...Why use any sheet controls...Make use of UserForm Controls...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. REPOSTING THREAD: Run time error 2146232576 (80131700) - Automation Error
    By bala04msw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2018, 07:39 AM
  2. Loop Nesting is returning Run-Time Error '-2147221080 (800401a8)': Automation Error
    By ChristopherBrandonKi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2014, 02:36 PM
  3. [SOLVED] Run-tim error -2147467259(80004005): Automation error Unspecidied error
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2014, 12:12 PM
  4. [SOLVED] Error: automation error the object invoked has disconnected from its clients
    By siroos12 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 12-24-2013, 08:56 AM
  5. Facing 'run-time error -2147217871 (80040e31) Automation error' in excel VBA
    By junaidanjum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2013, 03:48 AM
  6. Replies: 7
    Last Post: 05-15-2013, 09:02 AM
  7. Replies: 7
    Last Post: 01-15-2010, 02:34 PM

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