STEVENS3010
Board Regular
- Joined
- Feb 4, 2020
- Messages
- 89
- Office Version
- 365
- 2016
- Platform
- Windows
Hi all,
I have the following code which I am using to copy a range from excel and pasting into a word document. Could somebody please help me understand how to tweak it slightly so that the paste is done with unformatted text?
I have the following code which I am using to copy a range from excel and pasting into a word document. Could somebody please help me understand how to tweak it slightly so that the paste is done with unformatted text?
VBA Code:
Sub ExcelToWord()
Dim wordApp As Word.Application
Dim mydoc As Word.Document
Set wordApp = New Word.Application
wordApp.Visible = True
Set mydoc = wordApp.Documents.Add()
ThisWorkbook.Worksheets("sheet2").Range("A1:A30").Copy
mydoc.Paragraphs(1).Range.Paste
CutCopyMode = False
End Sub