Bom dia,
Supondo que sejam 4 objetos, veja se o código abaixo atende:
Sub GerarRelatorio()
Sheets("Relatorio").Activate
Dim objWord As Variant
Dim Intervalo As Range
Set Intervalo = Range("A1:G10")
Intervalo.Copy
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
With objWord
.Documents.Add Template:="Normal", newtemplate:=False, DocumentType:=0
.Selection.PasteExcelTable False, False, False
.Selection.TypeParagraph
.ActiveDocument.SaveAs Filename:="Relatório.doc", FileFormat:= _
0, LockComments:=False, Password:="", AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:= _
False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
SaveAsAOCELetter:=False
End With
ActiveSheet.Shapes.Range(Array(1, 2, 3, 4)).Select
Selection.Copy
objWord.Selection.Paste
Set objWord = Nothing
End Sub
Abraço
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 14/09/2011 6:47 am