PC Review


Reply
Thread Tools Rate Thread

combobox population question

 
 
=?Utf-8?B?TWVraW5uaWs=?=
Guest
Posts: n/a
 
      4th Nov 2007
I am trying to populate multible comboboxes from different sheets and cannot
figure out how to do it with the from initialize event. Heres my code. Please
help.

Private Sub UserForm_Initialize()
CbxMfg.List = Worksheets("MANCODE").Range("A2:A1000").Value
CboFire.List = Worksheets("Lists").Range("D25").Value
CboHealth.List = Worksheets("Lists").Range("D25").Value
CboReact.List = Worksheets("Lists").Range("D25").Value
CboDisp.List = Worksheets("Lists").Range("E2:E4").Value
CboDept.List = Worksheets("Lists").Range("C2:C10").Value
End Sub
 
Reply With Quote
 
 
 
 
=?Utf-8?B?T3NzaWVNYWM=?=
Guest
Posts: n/a
 
      4th Nov 2007
Hi,

Following examples should help. (Edit for your ranges).

CbxMfg.RowSource = Worksheets("MANCODE") _
.Range("A1:A26").Address(external:=True)

CboFire.RowSource = Worksheets("Lists") _
.Range("B1:B26").Address(external:=True)

Regards,

OssieMac

"Mekinnik" wrote:

> I am trying to populate multible comboboxes from different sheets and cannot
> figure out how to do it with the from initialize event. Heres my code. Please
> help.
>
> Private Sub UserForm_Initialize()
> CbxMfg.List = Worksheets("MANCODE").Range("A2:A1000").Value
> CboFire.List = Worksheets("Lists").Range("D25").Value
> CboHealth.List = Worksheets("Lists").Range("D25").Value
> CboReact.List = Worksheets("Lists").Range("D25").Value
> CboDisp.List = Worksheets("Lists").Range("E2:E4").Value
> CboDept.List = Worksheets("Lists").Range("C2:C10").Value
> End Sub

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox Population =?Utf-8?B?UGhpbGlw?= Microsoft Excel Programming 1 19th Nov 2005 02:05 PM
combobox population dirt Microsoft Excel Programming 0 22nd Dec 2004 03:16 PM
Problem in ComboBox Population =?Utf-8?B?R2FuZXNo?= Microsoft Access Forms 1 15th Jun 2004 02:58 AM
Combobox Population stck2mlon Microsoft Excel Programming 4 3rd Jun 2004 12:37 PM
Problems with combobox population Alessandro Microsoft Dot NET Compact Framework 2 9th Oct 2003 04:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 AM.