Seba Robles
Board Regular
- Joined
- May 16, 2018
- Messages
- 73
- Office Version
- 2019
- 2016
- Platform
- Windows
The title pretty much sums up what I am trying to accomplish but have had no luck whatsoever.
I'm trying to copy a range from an excel worksheet to word but when I do, it changes the text formatting and the table extends beyond the first page (both to the right and onto the next page).
So I'm trying to;
- autofit contents to window
- keep source fromatting when pasting
- maintin the pasted table within one page
- paste new table onto a new blank page
Any help is appreciated. Thanks in advanced!
I'm trying to copy a range from an excel worksheet to word but when I do, it changes the text formatting and the table extends beyond the first page (both to the right and onto the next page).
So I'm trying to;
- autofit contents to window
- keep source fromatting when pasting
- maintin the pasted table within one page
- paste new table onto a new blank page
Rich (BB code):
Sub ExcelWordPaste()
Dim objWord As Object
Dim objDoc As Object
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.documents.Add
Range("A9:H48").Copy
objWord.Selection.PasteSpecial Placement:=wdInLine
objWord.Selection.TypeParagraph
End Sub
Any help is appreciated. Thanks in advanced!
Last edited: