I have this project which main purpose is to modify and use an excel sheet. Everything is done through userform for the sake of user-friendliness. The sheet to be imported will be in a workbook sent by an external source, by different means (mail, retrieved from the network...) and will have a different name each time. I'm looking for the most user friendly way to get the data from this sheet.
The most user friendly way I could figure, is to temporarily hide the userforms and ask the user to open the workbook from which the datas are needed. Then, to have the code copy the sheet I need among my main project sheets (if it passes a series of tests, to be certain it's the right one and not some other randomly opened workbook).
I was looking for a more intuitive solution, like drag'n drop the workbook on a userform of my project. I'm not certain it can be done, I was reading about the need of treeview, which according to some source doesn't support 64, and according to others works fine. I also read about a JPK replacement for treeview, but I'm not sure how this replacement can be considered as a safe option on the long term.
Any hints ? I'm looking for a solution without really knowing what to look for.
TreeViewcontrol and configure it to accept manual Drag and Drop. I did that, but it worked only dropping files from folders. Microsoft Oulook mail used to allow drag and drop, but for some years (security reason...) it doesn't. What mail application do you use? You may test the treeView and see if it allows that. Practically, you must right click on the toolBox and select 'Additional Controlls' then you check 'Microsoft TreeView Control, version...' and press OK. Now you can drag and drop the control on your form. There is good stuf here about the settings. - FaneDuru