P
papou
Hi all
Office 2K
I am trying to copy an excel sheet into word using VBA.
For better page settings purposes, the Excel sheet is pasted as an RTF
document into an existing word document :
Sheets("Saisie").Range(LaPlgCopie).Copy
WdApp.Selection.PasteSpecial Link:=False, DataType:=wdPasteRTF
and this works OK.
But I cannot figure out how to tell Word that the first line of the pasted
sheet is the heading (titles) since I have several pages.
I have been trying with the Word macro recorder but this won't work.
I also need to do some operations on this particular line.
I would be grateful if somebody could help.
TIA
Regards
Pascal
Office 2K
I am trying to copy an excel sheet into word using VBA.
For better page settings purposes, the Excel sheet is pasted as an RTF
document into an existing word document :
Sheets("Saisie").Range(LaPlgCopie).Copy
WdApp.Selection.PasteSpecial Link:=False, DataType:=wdPasteRTF
and this works OK.
But I cannot figure out how to tell Word that the first line of the pasted
sheet is the heading (titles) since I have several pages.
I have been trying with the Word macro recorder but this won't work.
I also need to do some operations on this particular line.
I would be grateful if somebody could help.
TIA
Regards
Pascal