D
Derek Hart
I want to use the pastespecial command in VBA to paste in a Microsoft Word
Document Object. The way I do this by hand is to highlight a file in Windows
Explorer, copy it to the clipboard, and choose Paste Special in Word. Then
it embeds a document. This way I do not have to worry about styles being
consistent and I can have a bunch of word docs inside one doc that can be
fully editable. When I record a macro I can get:
Selection.PasteSpecial Link:=False, DataType:=11, Placement:=wdInLine,
DisplayAsIcon:=False
Not sure what the DataType of 11 is, since help does not have a constant for
this. But I need a way to copy a Word doc to the clipboard so I can do this
in code. Is there a way?
Derek
Document Object. The way I do this by hand is to highlight a file in Windows
Explorer, copy it to the clipboard, and choose Paste Special in Word. Then
it embeds a document. This way I do not have to worry about styles being
consistent and I can have a bunch of word docs inside one doc that can be
fully editable. When I record a macro I can get:
Selection.PasteSpecial Link:=False, DataType:=11, Placement:=wdInLine,
DisplayAsIcon:=False
Not sure what the DataType of 11 is, since help does not have a constant for
this. But I need a way to copy a Word doc to the clipboard so I can do this
in code. Is there a way?
Derek