Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Code Project readers,

I have come across one interesting problem which i couldn't find solution.. :)

I have data is an excel(say Excel-A Workbook) which has to be populated in the dropdown of another excel (say Excel-B Workbook).

Please tell me the ways i can do this process using VB script.

Thanks in advance :)
Posted
Updated 25-Apr-13 3:25am
v2

1 solution

In VBA you would use something like
ComboBox1.ListFillRange = "'[Excel-A.xls]Sheet1'!$A$1:$A$10"
replacing $A$1:$A$10 with an appropriate range and Sheet1 with the name of the worksheet containing the data you need. Note that ListFillRange can also be set on the properties for the control

The spreadsheet will need to be open ...
Application.Workbooks.Open ("c:\Excel-A.xls")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900