Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default combobox population

Help, I have been all over the internet, etc. looking for help. I can't seem to populate a combobox using a variable sized list. I have tried many things but here is my latest attempt...

the data is from a call to a database that returns values to an excel spreadsheet. I want the results of the query to then populate the combobox. I can use the combobox from the forms menu, but it doesn't give me what I need. Can someone please help me?

TIA,

Dan

Sub populate_ab_combobox()

a = 3
Set n = Sheets("Inputs")

Do While n.Cells(1 + a, 19).Value < ""
ab_title = n.Cells(1 + a, 19).Value
a = a + 1
lastrow = a
n.cbx_ab_qry.AddItem ab_title
Loop

End Sub
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
How Do I Load A ComboBox RowSource From The Results Of Another ComboBox Minitman[_4_] Excel Programming 3 October 26th 04 07:58 PM
Combobox Population stck2mlon[_19_] Excel Programming 4 June 3rd 04 12:37 PM
ComboBox Population of Cell Range Phil Hageman[_3_] Excel Programming 1 April 14th 04 01:56 PM
Userform text & combobox population help required please Newbie1 Excel Programming 5 February 28th 04 05:19 PM


All times are GMT +1. The time now is 05:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"