paddysheeran
10-18-2010, 09:18 AM
Hi All,
Im currently writing some code to copy tables fom excel into word. When doing this manually I currently use the PasteSpecial > Picture (Enhanced Metafile) but I cant find the code anywhere for this after a lot of searching on the net. Does anyone have a quick solution for this. The current code I'm using which is not working is:
Sub WR_Response_Time()
Set wsSource = ActiveWorkbook.Sheets("Response Time")
Set t = wdDoc.Bookmarks("ResponseTime_ResponseTime").Range
wsSource.Activate
Set Rng = Range("B4:R10")
Rng.Copy
t.PasteSpecial DataType:=wdPasteEnhancedMetafile
End Sub
thanks in advance.
paddy.
Im currently writing some code to copy tables fom excel into word. When doing this manually I currently use the PasteSpecial > Picture (Enhanced Metafile) but I cant find the code anywhere for this after a lot of searching on the net. Does anyone have a quick solution for this. The current code I'm using which is not working is:
Sub WR_Response_Time()
Set wsSource = ActiveWorkbook.Sheets("Response Time")
Set t = wdDoc.Bookmarks("ResponseTime_ResponseTime").Range
wsSource.Activate
Set Rng = Range("B4:R10")
Rng.Copy
t.PasteSpecial DataType:=wdPasteEnhancedMetafile
End Sub
thanks in advance.
paddy.