This macro copies a range in excel and pastes to word, while Word opens up in landscape. I would also like it to autofit after pasting in Word. Any help would be appreciated.
Code:
[IMG]https://www.mrexcel.com/forum/newthread.php?do=postthread&f=10[/IMG] <code>Sub PasteToWord()
Dim wdApp As New Word.Application, wdDoc As Word.Document
With wdApp
.Visible = True
Set wdDoc = .Documents.Add
With wdDoc
.PageSetup.Orientation = wdOrientLandscape
Sheets("Sheet1").Range("A34:J178").Copy
.Range.Paste
Application.CutCopyMode = False
End With
End With
Set wdDoc = Nothing: Set wdApp = Nothing
End Sub</code>