Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Combobox in userform
Just help ao I con start on this
How do i get data from a sheet in to the combobox combobox is on userform Alvin |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Combobox in userform
Hi Alvin
something along the lines of Private Sub UserForm_Initialize() Dim myrange As Range Set myrange = Sheets("Sheet4").Range("A1:A10") For Each c In myrange ComboBox1.AddItem c.Value Next End Sub Hope this helps Cheers JulieD "Alvin Hansen" wrote in message ... Just help ao I con start on this How do i get data from a sheet in to the combobox combobox is on userform Alvin |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Combobox in userform
Name your array in the sheet then set your 'Rowsource' property available in
the combobox properties screen e.g. "=listname" "Alvin Hansen" wrote: Just help ao I con start on this How do i get data from a sheet in to the combobox combobox is on userform Alvin |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Combobox in userform
hi JulieD
Thank you very much Its working Alvin "JulieD" skrev: Hi Alvin something along the lines of Private Sub UserForm_Initialize() Dim myrange As Range Set myrange = Sheets("Sheet4").Range("A1:A10") For Each c In myrange ComboBox1.AddItem c.Value Next End Sub Hope this helps Cheers JulieD "Alvin Hansen" wrote in message ... Just help ao I con start on this How do i get data from a sheet in to the combobox combobox is on userform Alvin |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Combobox in userform
Hi Alvin
thanks for the feedback ..."Newbie's" suggestion is an alternative method you might consider - but i've never done it that way so i'm not sure of the Pros and Cons Cheers JulieD "Alvin Hansen" wrote in message ... hi JulieD Thank you very much Its working Alvin "JulieD" skrev: Hi Alvin something along the lines of Private Sub UserForm_Initialize() Dim myrange As Range Set myrange = Sheets("Sheet4").Range("A1:A10") For Each c In myrange ComboBox1.AddItem c.Value Next End Sub Hope this helps Cheers JulieD "Alvin Hansen" wrote in message ... Just help ao I con start on this How do i get data from a sheet in to the combobox combobox is on userform Alvin |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Combobox in userform
Hi Julie
That's the old discussion of databound vs unbound controls, a question of personal style and strong beliefs <g. I always use your way of doing things, "unnecessary" code instead of databinding properties. Best wishes Harald "JulieD" skrev i melding ... Hi Alvin thanks for the feedback ..."Newbie's" suggestion is an alternative method you might consider - but i've never done it that way so i'm not sure of the Pros and Cons Cheers JulieD |
#7
Posted to microsoft.public.excel.programming
|
|||
|
|||
Combobox in userform
Another way would be
Private Sub UserForm_Initialize() ComboBox1.List = Sheets("Sheet4"). _ Range("A1:A10").Value End Sub -- Regards, Tom Ogilvy "JulieD" wrote in message ... Hi Alvin thanks for the feedback ..."Newbie's" suggestion is an alternative method you might consider - but i've never done it that way so i'm not sure of the Pros and Cons Cheers JulieD "Alvin Hansen" wrote in message ... hi JulieD Thank you very much Its working Alvin "JulieD" skrev: Hi Alvin something along the lines of Private Sub UserForm_Initialize() Dim myrange As Range Set myrange = Sheets("Sheet4").Range("A1:A10") For Each c In myrange ComboBox1.AddItem c.Value Next End Sub Hope this helps Cheers JulieD "Alvin Hansen" wrote in message ... Just help ao I con start on this How do i get data from a sheet in to the combobox combobox is on userform Alvin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Value From ComboBox On UserForm | Excel Discussion (Misc queries) | |||
ComboBox on a UserForm | Excel Worksheet Functions | |||
Userform w/ComboBox | Excel Discussion (Misc queries) | |||
ComboBox on UserForm | Excel Programming | |||
ComboBox on UserForm | Excel Programming |