Hi Pete,
Copy the following into a standard VBA code module in the workbook from which you want to copy data.
Option Explicit
Const strRangeToCopy As String = "B20:H80"
Sub CopyRangeToWord()
Dim appWord As Object
Range(strRangeToCopy).Copy
On Error Resume Next
Set appWord = GetObject(, "Word.Application")
On Error GoTo 0
If appWord Is Nothing Then Set appWord = CreateObject("Word.Application")
With appWord
.Documents.Add
.Selection.Paste
.Visible = True
End With
End Sub
You can alter the value of the constant strRangeToCopy to suit the range you wish to copy.
This routine will use an existing instance of Word if one exists, or will open a new one if Word is not already running.
Hope the above helps. Please let me know how you get on.
Reards,
Greg M
Bookmarks