D
DDR
I'm trying to enter an object at the end of a Word document (similar to
Insert->Object). Attached is the code I am using. However, the object keeps
getting placed at the top of the Word document. When I manually perform the
Insert->Object, with the cursor at the end of the document, it places the
object after the cursor. When I do it through code, I see the cursor move to
the end of the document, but still the object does not get placed after the
cursor.
ActiveDocument.Content.Select
With Selection
.EndKey Unit:=wdStory
.TypeParagraph
ActiveDocument.Shapes.AddOLEObject FileName:=BODoc.FullName,
linktofile:=True
End With
Insert->Object). Attached is the code I am using. However, the object keeps
getting placed at the top of the Word document. When I manually perform the
Insert->Object, with the cursor at the end of the document, it places the
object after the cursor. When I do it through code, I see the cursor move to
the end of the document, but still the object does not get placed after the
cursor.
ActiveDocument.Content.Select
With Selection
.EndKey Unit:=wdStory
.TypeParagraph
ActiveDocument.Shapes.AddOLEObject FileName:=BODoc.FullName,
linktofile:=True
End With