Hey all!
I'm having a problem with transferring data from excel to word. I've got the majority of the code done where I can select and copy the cells in excel and paste the cells as required into word. However I can't specify where I want the data to be inserted into word. When this goes into full operation there will be a lot of data to be transferred. I guess I need to use words bookmarks but I don't want to loose the paste special -> link function.
Any ideas?
Code so far:
I'm having a problem with transferring data from excel to word. I've got the majority of the code done where I can select and copy the cells in excel and paste the cells as required into word. However I can't specify where I want the data to be inserted into word. When this goes into full operation there will be a lot of data to be transferred. I guess I need to use words bookmarks but I don't want to loose the paste special -> link function.
Any ideas?
Code so far:
Code:
Sub Excel_to_Word()
Dim wdApp As Word.Application, wdDoc As Word.Document, ws As Worksheet
Application.ScreenUpdating = False
Application.StatusBar = "Creating new document..."
Set wdApp = New Word.Application
Set wdDoc = wdApp.Documents.Open("c:\Doc1.doc")
wdApp.Visible = True
Sheets("Project Data").Range("B1:F16").Copy
wdApp.Selection.PasteSpecial Link:=True, DataType:=wdPasteRTF
End Sub
Comment