ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to copy highlighted cells to csv file (https://www.excelbanter.com/excel-programming/356006-macro-copy-highlighted-cells-csv-file.html)

Martin[_23_]

Macro to copy highlighted cells to csv file
 
I need a macro to copy all cells that are selected then paste them onto a
csv file. I'm able to get the cell range using Selection.Address but how do
I copy them onto a csv file?

Thanks.



Jim Rech

Macro to copy highlighted cells to csv file
 
The simplest way would probably be to copy the selection to a new workbook
and then save the active sheet as a CSV.

--
Jim
"Martin" wrote in message
...
|I need a macro to copy all cells that are selected then paste them onto a
| csv file. I'm able to get the cell range using Selection.Address but how
do
| I copy them onto a csv file?
|
| Thanks.
|
|




All times are GMT +1. The time now is 10:59 PM.

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