M
Mike
Hi,
I want to do the following:
1. open a new document based on a template
2. in this document, insert another word document (which I select
using a listbox)
3. after the word-document is inserted, run the code that is inside
the inserted word document
Step 1 and 2 are not a problem. However, I use
Selection.InsertFile FileName:=myName, Range:="" to insert the new
word document.
In this document I want to use the code that is in this document to
run, the moment the insertion is done. I used AutoOpen, AutoNew,
Document Open in the document to insert, but nothing works. I think
this is because the document is inserted, not opened!
Is there a solution?
Thanks, Mike
I want to do the following:
1. open a new document based on a template
2. in this document, insert another word document (which I select
using a listbox)
3. after the word-document is inserted, run the code that is inside
the inserted word document
Step 1 and 2 are not a problem. However, I use
Selection.InsertFile FileName:=myName, Range:="" to insert the new
word document.
In this document I want to use the code that is in this document to
run, the moment the insertion is done. I used AutoOpen, AutoNew,
Document Open in the document to insert, but nothing works. I think
this is because the document is inserted, not opened!
Is there a solution?
Thanks, Mike