abdulhaque
Board Regular
- Joined
- Dec 2, 2015
- Messages
- 63
Hi all,
I have the below VBA code that will copy the contents of a Microsoft Word table cell and paste it into an Excel cell.
It works apart from picking up line breaks. So if the Word table cell reads
Username: CH_CLERICAL1
Password: CH_CLERICAL1
This will be copied and pasted into Excel as
Username: CH_CLERICAL1Password: CH_CLERICAL1
Can the above code be improved so it copies/pastes line breaks too?
Thanks
I have the below VBA code that will copy the contents of a Microsoft Word table cell and paste it into an Excel cell.
Code:
Cells(x) = WorksheetFunction.Clean(.Cell(x).Range.Text)
It works apart from picking up line breaks. So if the Word table cell reads
Username: CH_CLERICAL1
Password: CH_CLERICAL1
This will be copied and pasted into Excel as
Username: CH_CLERICAL1Password: CH_CLERICAL1
Can the above code be improved so it copies/pastes line breaks too?
Thanks