Paulo_3456
New Member
- Joined
- Jul 25, 2018
- Messages
- 15
Hi everyone,
I have a Word document with 2 macros in it.
I coded a first Word VBA Macro that imports tables from an Excel file.
This first Word Macro begins allowing User to select the Excel file thanks to a dialog box.
Then, the first macro execute itself and import some tables in the Word document.
After that, first macro ends and user has to annotate some lines of the imputed Excel tables in the Word document.
Then, user can execute the second macro which process datas according to the annotations he just made and I need this second macro to get some more tables from the already-opened Excel file.
But I can't figure out a way to do it without asking again the user to select the Excel file in the directory.
Isn't there a way to use the already-opened Excel file instead of reopening it ?
I am not sure to be perfectly clear, if you need any details, I can provide some more information.
Regards,
Paul
I have a Word document with 2 macros in it.
I coded a first Word VBA Macro that imports tables from an Excel file.
This first Word Macro begins allowing User to select the Excel file thanks to a dialog box.
Then, the first macro execute itself and import some tables in the Word document.
After that, first macro ends and user has to annotate some lines of the imputed Excel tables in the Word document.
Then, user can execute the second macro which process datas according to the annotations he just made and I need this second macro to get some more tables from the already-opened Excel file.
But I can't figure out a way to do it without asking again the user to select the Excel file in the directory.
Isn't there a way to use the already-opened Excel file instead of reopening it ?
I am not sure to be perfectly clear, if you need any details, I can provide some more information.
Regards,
Paul