Copy Word table to Excel without splitting cells
I'm struggling to paste a Word table into Excel without the delimiter splitting out by paragraphs, as I want to grab those paragraphs and paste then into Excel later.
Does anyone know how to prevent Excel from splitting paragraphed text when it is pasted into Excel from a Word table?
Sub InputDoc()
Dim Oo As OLEObject
Dim wDoc As Object 'Word.Document
'Search for the embedded Word document
For Each Oo In Worksheets("Input").OLEObjects
If InStr(1, Oo.progID, "Word.Document", vbTextCompare) > 0 Then
'Open the embedded document
Oo.Verb xlVerbPrimary
'Get the document inside
Set wDoc = Oo.Object
'Copy the contents to cell A1
wDoc.Content.Copy
Worksheets("Paste").Range("A1").PasteSpecial Paste:=xlPasteFormats