Thingol
Technical User
- Jan 2, 2002
- 169
- 0
- 0
Hi All,
I'm trying to write a macro in Excel that pastes the text of several rtf-documents into a single Excel cell for each of the documents. What I have already is a macro that checks what rtf-files are available in a certain folder, and that copies the content of the rtf-file. It also pastes the copied content into the assigned cell. So, what is the problem then? Well, the rtf-documents contain several line-breaks. When pasting in Excel, these line-breaks make the pasted text occupy several cells, instead of just one.
Therefore, my question is: Is it possible to paste the contents of a textfile like the rtf-document into a single Excel cell and make sure that the linebreaks appear within the cell, as if they would look when using alt+enter? If I just know whether that is possible at all, I will also be able to put it into the macro, I think.
Thanks a lot in advance for any help!
Best regards,
Martijn Senden.
In the Beginning there was nothing, which exploded.
--Terry Pratchett, Lords and Ladies--
I'm trying to write a macro in Excel that pastes the text of several rtf-documents into a single Excel cell for each of the documents. What I have already is a macro that checks what rtf-files are available in a certain folder, and that copies the content of the rtf-file. It also pastes the copied content into the assigned cell. So, what is the problem then? Well, the rtf-documents contain several line-breaks. When pasting in Excel, these line-breaks make the pasted text occupy several cells, instead of just one.
Therefore, my question is: Is it possible to paste the contents of a textfile like the rtf-document into a single Excel cell and make sure that the linebreaks appear within the cell, as if they would look when using alt+enter? If I just know whether that is possible at all, I will also be able to put it into the macro, I think.
Thanks a lot in advance for any help!
Best regards,
Martijn Senden.
In the Beginning there was nothing, which exploded.
--Terry Pratchett, Lords and Ladies--