Hi there,
Here's an approach that's fairly flexible and should get you started on the right track.
Enter data in worksheet cells as follows:
A2 The path to your data workbooks
B2 The name (including .xls) of the specific data workbook from which you wish to retrieve data
C2 The name of the worksheet from which you wish to retrieve data
D2 The address of the cell from which you wish to retrieve data
Now select the cell into which you wish the data to be retrieved and run the following code:
The selected cell should then display the appropriate data.
If this approach is suitable, it can be significantly enhanced, e.g. by providing workbook names, worksheet names etc. in dropdown lists in cells B2, C2 etc. above.
Hope this is helpful - please let me know how you get on.
Regards,
Greg M
P.S. Note to Moderator - it might be more appropriate to have this posted in the Programming group.
Bookmarks