[Migrated content. Thread originally posted on 26 October 2005]
Hi all,
can someone please help me.
I want to insert a file in a Word document using activeX from ACU GT.
The new file to insert in the Word document is also a Word document, and has to be inserted on a specific place in the original Word document.
Can someone help me to handle this, if possible with some statements to use with the help of WORD.DEF.
Thanx
I figure the key for you is the method InsertFile of the Range class.
[Migrated content. Thread originally posted on 26 October 2005]
Hi all,
can someone please help me.
I want to insert a file in a Word document using activeX from ACU GT.
The new file to insert in the Word document is also a Word document, and has to be inserted on a specific place in the original Word document.
Can someone help me to handle this, if possible with some statements to use with the help of WORD.DEF.
Thanx
Thanx, i now can insert a file within a Word document using the InsertFile command.
I only can't find how to get the correct position in my Word document to insert the other file.
Suppose i have somewhere in my Word document the word "Hello", how can i insert the other file into my Word document after the word "Hello".
Or is there another way to position the correct place to insert a file?
[Migrated content. Thread originally posted on 26 October 2005]
Hi all,
can someone please help me.
I want to insert a file in a Word document using activeX from ACU GT.
The new file to insert in the Word document is also a Word document, and has to be inserted on a specific place in the original Word document.
Can someone help me to handle this, if possible with some statements to use with the help of WORD.DEF.
Thanx
Originally posted by LauraP
Suppose i have somewhere in my Word document the word "Hello", how can i insert the other file into my Word document after the word "Hello".
Ok, this is a shot in the dark. But how about something along the line of:
Modify oDocument Selection::Find::Text = "Hello".
Modify oDcoument Selection::Find::Execute().
This should position you at the "Hello", how if you then do this:
Modify oDocument Selection::MoveRight(
BY NAME @Unit wdWord BY NAME @Count 1 )
And then do the Insertfile I figure it should be.
If this doesn't entirely match up to your expectations, I suggest you turn on the macro in Word, do what you want to do manually, stop the macro and take a look at the recorded code.