ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   copy data - txt file with formatting (https://www.excelbanter.com/excel-programming/368187-copy-data-txt-file-formatting.html)

Ajit

copy data - txt file with formatting
 
I am looking to copy data from excel to a notepad file and want 2 achieve the
following 2 things :

1) Keep the fomat of the text.
2) want to go to the end of the already existing txt file (with data) and
add data towards the end.


--
Ajit

NickHK

copy data - txt file with formatting
 
Ajit,
Plain text files (.txt, .csv etc) do not support formatting. You will have
to use another format; RTF, HTML, stay in Excel etc.

As for Appending data, There is the Excel method of
OpenAsTextStream/OpenTextFile or the VBA way using the Open statement.

NickHK

"Ajit" wrote in message
...
I am looking to copy data from excel to a notepad file and want 2 achieve

the
following 2 things :

1) Keep the fomat of the text.
2) want to go to the end of the already existing txt file (with data) and
add data towards the end.


--
Ajit





All times are GMT +1. The time now is 01:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com