This macro/VAB/Sub... needs to be able to paste data into a single excel cell.
The copied data may be one word or multiple paragraphs from a word document.
Either way it needs to be pasted into one single cell.
The code needs to pick up from this point:
I tried many different things that just does not work, from multiple variations of this code:
To multiple variations of this code:
The problem with all of the things I tried is that it copies the data from the clipboard & pastes it into multiple cells, but I need the data to stay in one single cell.
I also real numerous threads here in which copying content from multiple Word documents to an Excel workbook is demonstrated and many more and none of them show how to do this. For example:
https://www.mrexcel.com/forum/gener...doc-files-into-excel-including-filenames.html
https://www.mrexcel.com/forum/gener...-multiple-word-doc-single-new-excel-file.html
https://www.mrexcel.com/forum/gener...068739-vba-excel-import-word-tables-help.html
https://www.mrexcel.com/forum/gener...cting-ms-word-form-data-into-excel-table.html
https://www.mrexcel.com/forum/gener...able-word-into-excel-based-table-headers.html
https://www.mrexcel.com/forum/gener...fic-range-remove-spaces-after-paragraphs.html
https://www.mrexcel.com/forum/gener...t-word-document-putting-them-excel-table.html
Thank you so much in advance!
The copied data may be one word or multiple paragraphs from a word document.
Either way it needs to be pasted into one single cell.
The code needs to pick up from this point:
VBA Code:
' Paste info from clipboard starting at active cell
ActiveCell.Select
I tried many different things that just does not work, from multiple variations of this code:
VBA Code:
Application.SendKeys ("{F2}{HOME}+{END}")
To multiple variations of this code:
VBA Code:
ActiveCell.Select
Selection.WrapText = True
ActiveWorkbook.ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
False, NoHTMLFormatting:=False
The problem with all of the things I tried is that it copies the data from the clipboard & pastes it into multiple cells, but I need the data to stay in one single cell.
I also real numerous threads here in which copying content from multiple Word documents to an Excel workbook is demonstrated and many more and none of them show how to do this. For example:
https://www.mrexcel.com/forum/gener...doc-files-into-excel-including-filenames.html
https://www.mrexcel.com/forum/gener...-multiple-word-doc-single-new-excel-file.html
https://www.mrexcel.com/forum/gener...068739-vba-excel-import-word-tables-help.html
https://www.mrexcel.com/forum/gener...cting-ms-word-form-data-into-excel-table.html
https://www.mrexcel.com/forum/gener...able-word-into-excel-based-table-headers.html
https://www.mrexcel.com/forum/gener...fic-range-remove-spaces-after-paragraphs.html
https://www.mrexcel.com/forum/gener...t-word-document-putting-them-excel-table.html
Thank you so much in advance!