Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filling a combo box from another workbook

Status
Not open for further replies.

aharris2693

Programmer
Jul 15, 2003
45
US
Is it possible to fill a combo Box that is on a userForm in one workbook with a range from another workbook. Thanks
 
To be a little more specific, I have the two workbooks in the came directory. I have tried to map the entire path and it still gives me an error. However if the workbook with the source is open, it works fine. Do I hve to open this other workbook just to fill this box? My code currently looks like the following:

cmbNames.Clear
For Each i In Range ("'F:\DATA\USERS\HarrisAL\Mitch\[Wilmington_Seating_Chart.xls]Chart'!D2")
cmbNames.AddItem (i)
Next

Thanks Again
 
If it helps any, the error is 1004 Method 'Range' of Object '_Global' failed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top