T
TT
Hi,
I'm trying to copy ranges of cells in Excel (on separate sheets) to Word as
picture. The pictures should appear on different pages, that is on page 1, 2
etc. Now they appear all on page 1 on top of each other. I can't figure out
what's the problem. I'll attach the code here, I'd be grateful if someone
could help me out here.
TT
------------------------
Set appWD = CreateObject("Word.Application.11")
appWD.Visible = True
appWD.Documents.Add
appWD.Selection.InsertBreak
appWD.Selection.InsertBreak
Sheets("E1").Select
Range("A1:H53").Select
Selection.Copy
appWD.Selection.PasteSpecial DataType:=wdPasteMetafilePicture
Sheets("TV").Select
Range("A1
41").Select
Selection.Copy
appWD.Selection.GoTo What:=wdGoToPage, which:=2
appWD.Selection.PasteSpecial DataType:=wdPasteMetafilePicture
I'm trying to copy ranges of cells in Excel (on separate sheets) to Word as
picture. The pictures should appear on different pages, that is on page 1, 2
etc. Now they appear all on page 1 on top of each other. I can't figure out
what's the problem. I'll attach the code here, I'd be grateful if someone
could help me out here.
TT
------------------------
Set appWD = CreateObject("Word.Application.11")
appWD.Visible = True
appWD.Documents.Add
appWD.Selection.InsertBreak
appWD.Selection.InsertBreak
Sheets("E1").Select
Range("A1:H53").Select
Selection.Copy
appWD.Selection.PasteSpecial DataType:=wdPasteMetafilePicture
Sheets("TV").Select
Range("A1
Selection.Copy
appWD.Selection.GoTo What:=wdGoToPage, which:=2
appWD.Selection.PasteSpecial DataType:=wdPasteMetafilePicture