+ Reply to Thread
Results 1 to 4 of 4

Userform - Populate Combo Box with Column Number and 1st row data

  1. #1
    Registered User
    Join Date
    10-13-2011
    Location
    Jozi, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    93

    Userform - Populate Combo Box with Column Number and 1st row data

    Hello all,

    I need to populate a combo box on a form with the column name (A,B,C...etc) and the first row data. I need the code to check all columns in-case of missing column data.

    Its important to note the data will be dynamic. In my add in, a form opens on requests and asks the user which column he needs to action data on. this could be on any one of several non similar spreadsheets.

    EG: Combox to hold the following data (see column D has no data or header row):

    Column A - Date
    Column B - Rep
    Column C - Customer
    Column D -
    Column E - Product

    How can i pass this info to the form ?
    ***------ Coding for Fun ------***

  2. #2
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Userform - Populate Combo Box with Column Number and 1st row data

    Are there a set number of columns A through E or random?


    Shelton A.
    If Helpful, Add Reputaion!

  3. #3
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Userform - Populate Combo Box with Column Number and 1st row data

    This will capture the first empty cell of data on the first row

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    You can now use cletter in your continued coding for the column letter.

  4. #4
    Registered User
    Join Date
    10-13-2011
    Location
    Jozi, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    93

    Re: Userform - Populate Combo Box with Column Number and 1st row data

    Thanks for the reply, i have not yet tested it though.

    And, the number of columns will be random.

+ 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. Look-up column via drop-down box then populate userform with row data
    By cameronyoung in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2013, 12:54 PM
  2. Populate a textbox in a userform using multiple selections from a combo box
    By kksf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2013, 10:59 AM
  3. Populate chart with data from column (Unknown number of rows)
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2012, 07:25 AM
  4. Automate New Number, Populate Combo Box
    By Stickyrabbit in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-30-2010, 05:49 AM
  5. Combo Box populate column
    By SCWilly1 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-22-2007, 01:42 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