![]() |
#1
|
|||
|
|||
![]()
Hello all,
I am been researching this topic, and being new to vba, I'm having trouble figuring out how to modify existing examples to my purposes. I have a document template containing a userform: "UserForm1". This userform has two comboboxes: "HowCleanedComboBox" and "CaliberComboBox". I would like to populate these comboboxes from an Excel worksheet "Dropdowns.xlsm" that contains the named ranges "HowCleaned" and "Caliber" at columns C and I, respectively. I have inserted the following code, but I have a suspicion that I am barely scratching the surface of what I'll need to do :/ Code:
Private Sub UserForm_Initialize() xlFillList ListOrComboBox:=Me.HowCleanedComboBox, _ iColumn:=3, _ strWorkbook:="C:\Users\Public\Documents\FA worksheet changes\Word Worksheets\Dropdowns.xlsm", _ strRange:="HowCleaned", _ RangeIsWorksheet:=True, _ RangeIncludesHeaderRow:=True xlFillList ListOrComboBox:=Me.CaliberComboBox, _ iColumn:=9, _ strWorkbook:="C:\Users\Public\Documents\FA worksheet changes\Word Worksheets\Dropdowns.xlsm", _ strRange:="Caliber", _ RangeIsWorksheet:=True, _ RangeIncludesHeaderRow:=True End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
ferguson4848 | Word VBA | 3 | 10-28-2016 09:05 PM |
Userform calls other userform, then populate worksheet | Lehoi | Excel Programming | 0 | 02-03-2016 02:58 PM |
![]() |
Stewie840 | Word VBA | 14 | 12-17-2015 10:13 PM |
Trying to populate Word bookmarks with excel UserForm | smd1112 | Excel Programming | 7 | 09-03-2014 09:42 PM |
![]() |
billybeach | Outlook | 2 | 04-27-2013 04:38 AM |