I'm currently trying to assemble a master workbook which will import data from other files. The user should be able to select a file using the FileDialog which works fine so far. What's currently not working is trying to import a worksheet which the user should be able to choose from in the userform. As far as my tests have gone so far there are two options:
- Put two ComboBoxes on the UserForm with static values in each one (one for the filename and one for worksheetnames). Since the Import-Sheets will always be a selected type and the worksheets should all have the same name in the future that could work, but only if those conditions will be met throughout.
- One ComboBox on the UserForm which shows the worksheet names of the workbook to be imported (since I'll have to open that anyway to copy the values over to the master workbook, it should be possible to parse the worksheet names into the ComboBox).
Is what I'm trying to achieve even possible using VBA?
So far I haven't been able to get the worksheet names into the ComboBox and import the data.