M
me
Good Afternoon. I desperately need help doing a simple thing. I am
trying to use a copied USEDRANGE from Excel and paste it into a BOOKMARK
in Word. Sounds simple, but I can not get it done so far. My code just
sticks the copied range at the top of the word document. I need to
pinpoint it to copy at the InitialAssessment Bookmark. Here's the code:
Code:
Public Sub SendToWord()
Public Sub SendToWord()
Dim CAP As Range
Dim myWord As Word.Application
Dim bkmk As Word.Bookmark
Set CAP = Sheets("InitialAssessments").UsedRange
CAP.Copy
Set myWord = New Word.Application
With myWord
.Visible = True
.Activate
myWord.Documents.Open _
Filename:="C:\Documents and Settings\chrisv\Desktop\HBC2\Report
Document\HBC Reporting Document.doc"
With .Selection
Set bkmk = myWord.ActiveDocument.Bookmarks("InitialAssessments")
.Select
.TypeParagraph
.PasteAsNestedTable Link:=False, DataType:=wdPasteOLEObject
End With
End With
End Sub
Suggestions??? Please advise
trying to use a copied USEDRANGE from Excel and paste it into a BOOKMARK
in Word. Sounds simple, but I can not get it done so far. My code just
sticks the copied range at the top of the word document. I need to
pinpoint it to copy at the InitialAssessment Bookmark. Here's the code:
Code:
Public Sub SendToWord()
Public Sub SendToWord()
Dim CAP As Range
Dim myWord As Word.Application
Dim bkmk As Word.Bookmark
Set CAP = Sheets("InitialAssessments").UsedRange
CAP.Copy
Set myWord = New Word.Application
With myWord
.Visible = True
.Activate
myWord.Documents.Open _
Filename:="C:\Documents and Settings\chrisv\Desktop\HBC2\Report
Document\HBC Reporting Document.doc"
With .Selection
Set bkmk = myWord.ActiveDocument.Bookmarks("InitialAssessments")
.Select
.TypeParagraph
.PasteAsNestedTable Link:=False, DataType:=wdPasteOLEObject
End With
End With
End Sub
Suggestions??? Please advise