+ Reply to Thread
Results 1 to 4 of 4

Duplicate Combo box on next row

  1. #1
    Registered User
    Join Date
    11-27-2018
    Location
    Philadelphia PA
    MS-Off Ver
    2007
    Posts
    15

    Duplicate Combo box on next row

    Hi, this is my first post I hope I can explain clearly. I have a combo box (activex) on Row1 Col H, with all the items listed in the drop down.
    When I go to the next row I would like the combo box to be automatically added to Row2 Col H and so forth. Can this be done?
    Frank

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Duplicate Combo box on next row

    Welcome to the forum

    I cannot test with Excel2007 - so it may fail if something fundamental has changed in Excel 2016

    EDIT -suggest you ignore this suggestion and test the one in the next post instead


    Here is one way
    Test in a new workbook
    Add an active-x combobox above cell H1, rename it cb_1 and add items to appear in the dropdown

    Right-click on sheet tab \ View Code \ paste this code into the code window \ {Alt}{F11} takes you back to Excel
    Please Login or Register  to view this content.
    How it works
    - each combobox is named cb_ followed by row number (including the master in row 1 cb_1)
    - this allows VBA to test for the existence of a combobox for the row selected
    - if user clicks on row 6 and cb_6 exists then nothing happens otherwise a new combobox is added
    - a few "sample" properties are mirrored to match cb_1

    Question
    Why are you using a combobox? Why not use a dropdown in the cell itself which is easy to copy and paste
    Last edited by kev_; 11-29-2018 at 07:45 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Duplicate Combo box on next row

    Much simpler code - I forgot about the Duplicate method!!

    Test in a new workbook
    Add an active-x combobox above cell H1, rename it cb_1 and add items to appear in the dropdown

    Right-click on sheet tab \ View Code \ paste this code into the code window \ {Alt}{F11} takes you back to Excel

    Please Login or Register  to view this content.
    Last edited by kev_; 11-29-2018 at 07:46 AM.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Duplicate Combo box on next row

    @Fjcunninghamjr
    Have you forgotten about this thread?

+ 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. [SOLVED] Using Multiple Combo Box Values to populate a cell (Excluding blank combo boxes)
    By mnadamn19 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2016, 08:38 PM
  2. [SOLVED] Using Multiple Combo Box Values to populate a cell (Excluding blank combo boxes)
    By mnadamn19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2016, 10:49 AM
  3. Using Multiple Combo Box Values to populate a cell (Excluding blank combo boxes)
    By mnadamn19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2016, 03:45 PM
  4. Replies: 8
    Last Post: 12-26-2013, 02:23 PM
  5. [SOLVED] Excel 2010 VBA – Combo Box Options– Clear cell/box in 2nd Combo when 1st Combo selected
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2013, 07:25 PM
  6. Display duplicate values in combo box
    By karimretina in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2013, 01:20 AM
  7. [SOLVED] non-duplicate combo box
    By [email protected] in forum Excel General
    Replies: 2
    Last Post: 11-28-2005, 07:30 PM

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