+ Reply to Thread
Results 1 to 5 of 5

Using activex combobox to insert value in a data validation cell

  1. #1
    Forum Contributor
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    123

    Using activex combobox to insert value in a data validation cell

    Greetings everyone!

    I have a problem that i hope somone can help me with. I have a worksheet that has a data validation cell and i want to be able to use an activex combobox to insert data into. I can get the link to work sucessfully, but i am having problems with the formulas responding the way i need them to. i have attached an example worksheet detailing the issue. Any help would be most appreciated. If i am going about this problem the wrong way or if there is a better way, please let me know. Thanks in advance!

    See attached worksheet:
    Attached Files Attached Files

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Using activex combobox to insert value in a data validation cell

    Right click the sheet's tab, view code, and paste. Obviously, save the file as xlsm.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    123

    Re: Using activex combobox to insert value in a data validation cell

    I get a runtime 1004 error: method range of object worksheet failed. debug highlights the following lines in code: Range(ComboBox1.LinkedCell).Value = _
    ComboBox1.Value. any ideas on why it is not working for me?

  4. #4
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: Using activex combobox to insert value in a data validation cell

    Darbar,

    Remove the entry from the linked cell property. Paste the following code into the Custom sheet's worksheet module:

    Please Login or Register  to view this content.
    You were sending "11" as text to a cell that requires a number. The code sends it to L6 as a number.

    HTH,
    Maud

  5. #5
    Forum Contributor
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    123

    Re: Using activex combobox to insert value in a data validation cell

    Genius....pure genius. Solved 100%.... Many Thanks for your time!

+ 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. ActiveX Combobox VBA not working on Cascading Data Validation
    By ringonohitorigoto in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-03-2016, 03:33 PM
  2. [SOLVED] ActiveX ComboBox Linked Cell Empty Value
    By sjmxls2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2016, 12:08 PM
  3. [SOLVED] fill listbox (ActiveX) based combobox (ActiveX)
    By elsg in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-31-2014, 11:25 AM
  4. Validation or ComboBox ActiveX/Form Control...
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2014, 01:10 PM
  5. [SOLVED] How do I change properties of activex combobox that is linked data validation list?
    By Chris* in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-13-2014, 07:03 AM
  6. How to fill an activex combobox with a data validation list?
    By Sape in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-03-2013, 04:45 PM
  7. Set ComboBox (ActiveX Control) value to cell
    By farzyness in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2011, 01:59 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