Hi All
Please, can someone tell me that, it's possible to have a vba code to set ComboBox row source property, from another excel file, preferably with source file closed (if possible at all).
The plan is, have multiple userforms (with same name) on separate folders with all combobox's pointing the row source to a master data excel file with name ranges setup, to avoid sharing the userform, which as far as I understand is not ideal to do do.
Example@
Path: C:\Userform\MasterData.xlsx
C:\Userform\Folder A
Userform1 - ComboBox1 - row source c:\masterdata\worksheet1"name range A"
Userform1 - ComboBox2 - row source c:\masterdata\worksheet2 "name range B"
Userform1 - ComboBox3 - row source c:\masterdata\worksheet3 "name range C"
C:\Userform\Folder B
Userform1 - ComboBox1 - row source c:\masterdata\worksheet1"name range A"
Userform1 - ComboBox2 - row source c:\masterdata\worksheet2 "name range B"
Userform1 - ComboBox3 - row source c:\masterdata\worksheet3 "name range C"
Many thanks in advance.
R
Please, can someone tell me that, it's possible to have a vba code to set ComboBox row source property, from another excel file, preferably with source file closed (if possible at all).
The plan is, have multiple userforms (with same name) on separate folders with all combobox's pointing the row source to a master data excel file with name ranges setup, to avoid sharing the userform, which as far as I understand is not ideal to do do.
Example@
Path: C:\Userform\MasterData.xlsx
C:\Userform\Folder A
Userform1 - ComboBox1 - row source c:\masterdata\worksheet1"name range A"
Userform1 - ComboBox2 - row source c:\masterdata\worksheet2 "name range B"
Userform1 - ComboBox3 - row source c:\masterdata\worksheet3 "name range C"
C:\Userform\Folder B
Userform1 - ComboBox1 - row source c:\masterdata\worksheet1"name range A"
Userform1 - ComboBox2 - row source c:\masterdata\worksheet2 "name range B"
Userform1 - ComboBox3 - row source c:\masterdata\worksheet3 "name range C"
Many thanks in advance.
R