I’m experiencing a problem trying to paste data from a cell in Excel into a Word document. The following code works to paste my data into a table in Word.
Sheets("Data").Select
Range("B3").Select
Selection.Copy
Set doc = CreateObject("Word.Application")
doc.Visible = True
doc.Documents.Add
doc.Documents.Add.Content.Paste
What I’d like to do is paste special so that the final outcome in my Word document is plain unformatted text (not in a table or cell). When I experimented with the following paste special commands, what was pasted into word was a bitmap or cell that only showed partial data.
doc.Documents.Add.Content.PasteSpecial DataType:=wdPasteText
or
doc.Documents.Add.Content.PasteSpecial DataType:=wdPasteRTF
Can someone help me with the proper paste special command so that I can properly paste my data into a Word document?
Sheets("Data").Select
Range("B3").Select
Selection.Copy
Set doc = CreateObject("Word.Application")
doc.Visible = True
doc.Documents.Add
doc.Documents.Add.Content.Paste
What I’d like to do is paste special so that the final outcome in my Word document is plain unformatted text (not in a table or cell). When I experimented with the following paste special commands, what was pasted into word was a bitmap or cell that only showed partial data.
doc.Documents.Add.Content.PasteSpecial DataType:=wdPasteText
or
doc.Documents.Add.Content.PasteSpecial DataType:=wdPasteRTF
Can someone help me with the proper paste special command so that I can properly paste my data into a Word document?