H
HHDM
Hello group
I have a template with a one column table in it.
I have a user-form that pops up, when I create a new document based on
this template.
In the user-form I can make some choices, and according to these I want
to add one or more columns that are stored as one column tables in
separate documents.
What I do is this:
----------------------------------------------------
Word.Documents.Open ("c:\file1.doc")
Word.ActiveDocument.Select
Word.Selection.Copy
Word.ActiveDocument.Close (False)
-------------------------------------------------------
After that I’m going to put in some code for pasting the column – But I
can’t paste it as an additional column, I can only paste into an
existing cell witch mixes everything up, or into another paragraph in
the document, where the column will be ok (but that’s not what I want).
If I open file1.doc and copy/paste manually I can easily add the column
next to the one I have in the document I’m editing.
Does anybody know what I have to do different?
Best regards
Hans-Henrik
I have a template with a one column table in it.
I have a user-form that pops up, when I create a new document based on
this template.
In the user-form I can make some choices, and according to these I want
to add one or more columns that are stored as one column tables in
separate documents.
What I do is this:
----------------------------------------------------
Word.Documents.Open ("c:\file1.doc")
Word.ActiveDocument.Select
Word.Selection.Copy
Word.ActiveDocument.Close (False)
-------------------------------------------------------
After that I’m going to put in some code for pasting the column – But I
can’t paste it as an additional column, I can only paste into an
existing cell witch mixes everything up, or into another paragraph in
the document, where the column will be ok (but that’s not what I want).
If I open file1.doc and copy/paste manually I can easily add the column
next to the one I have in the document I’m editing.
Does anybody know what I have to do different?
Best regards
Hans-Henrik