I have an Excel appl that needs to "operate" on a word doc. If the "operation" is simply to open/display a word file, and let the user do whatever they want with the word file, then a simply hyperlink works fine. If no user interaction is required, then using the CreateObject("Word.Application") approach and directly operating of the word doc works well. But in this case, I wish to do both and have the Excel appl "know" what has happened. The process should be something like:
Items 1, 2, 5 and 6 are pretty simple. The difficult part for me is #3 and #4, i.e., how to "switch control" to the Word instance, let the user do what is required, switch control back to the Excel appl and post the paragraph text to a variable in the Excel appl. I am sure that there is some simple way to do this ... so what is it?
- Excel appl interacts with user to identify target word doc
- Excel appl opens the word doc
- user selects a target paragraph in the word doc
- Excel appl "fetches" that paragraph and does unnatural things to it
- Excell appl close the word doc with no changes
- Excel appl does unnatural things to the fetched text
Thanks