Hi All,
Basically i have a list in excel with customer addresses.
I want to be able to keep this as the 'master database' and have a combo box in a template userform refer to it.
That way the combo box will be updated if there is a change in the database.
Can someone please let me know if this is possible.
And some basic directions.
Much appreciated.
Lara
You have a userform in the Worddocument: Userform1
The userform conains 1 combobox: Combobox1
The name of the Excel file is: E:\Excel\adres.xls
Put this code in the Userform module
Start the userform : Userform1.showCode:Private Sub UserForm_Initialize() With GetObject("E:\Excel\adres.xls") Combobox1.List = .sheets(1).usedrange.Value .Close False End With End Sub
That's about all.
- ISO weeknumber _ _ _ Dependent validation
- Avoid using VBA-code you do not understand.
- If you like any of my suggestions please click the (star) reputationicon in the left down corner of this post.
- Mark a thread as 'solved' instructions
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks