Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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
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
Value From ComboBox On UserForm jlclyde Excel Discussion (Misc queries) 3 October 16th 09 01:43 PM
ComboBox on a UserForm LLoyd Excel Worksheet Functions 2 February 20th 08 09:01 PM
Userform w/ComboBox D.Parker Excel Discussion (Misc queries) 2 May 6th 05 04:28 PM
ComboBox on UserForm Michel[_4_] Excel Programming 3 August 1st 04 11:10 PM
ComboBox on UserForm Michel[_4_] Excel Programming 2 July 31st 04 10:11 PM


All times are GMT +1. The time now is 02:11 PM.

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"