Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Output to CSV

Hi,

Is there a way to create a macro to export a value (or even
worksheet) to a csv file.


I tried by creating a macro to save as a csv but this copies an
converts the current workbook to the new file type etc.

Any help would be welcome

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Output to CSV

It doesn't convert the source workbook unless you saveas with the same file
name. However,

You could always copy your sheet as a new workbook, saveas CSV, then close
it.

Activesheet.copy
Activeworkbook.Saves "C:\Myfolder\Myfile.csv", FileFormat:=xlCSV
Activeworkbook.close SaveChanges:=False

--
Regards,
Tom Ogilvy


sanjay wrote in message
...
Hi,

Is there a way to create a macro to export a value (or even a
worksheet) to a csv file.


I tried by creating a macro to save as a csv but this copies and
converts the current workbook to the new file type etc.

Any help would be welcome.


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help for getting output balurrpr Excel Discussion (Misc queries) 2 April 15th 10 10:12 AM
Output to calendar Mary New Users to Excel 2 June 5th 07 08:50 PM
Getting output from an excel output back to cscript.. J S Excel Programming 0 January 21st 04 09:06 PM
Output to Notepad Neil[_14_] Excel Programming 1 January 13th 04 03:10 AM
Too much output... PLEASE HELP! Mark Rosenkrantz Excel Programming 4 August 7th 03 03:58 AM


All times are GMT +1. The time now is 07:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"