LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Programmatic export to CSV


Hi All

I am trying to write some VBA that will export one sheet from m
workbook as a CVF file. I can do this using:

ActiveWorkbook.SaveAs myFileName, xlCSV

...but this leaves me with the open document pointed at the new CS
file on disk. In an attempt to work around this, I tried storing th
original path first and saving back to that location as a standar
Excel workbook. This works, except the sheet I exported to CSV is no
renamed (great 'feature'), thus breaking my macro!

Does anyone know of a cleaner way to do this (short of writing my ow
CSV generator, which seems a little excessive)? The existence of th
'Excel 2000 Programmatic Text Export Update
(http://office.microsoft.com/Download.../xl8p8pkg.aspx) on the M
Office site would seem to suggest that there might be a sensibl
programmatic interface to the export filters somewhere, but I can'
find it..

--
lucid
-----------------------------------------------------------------------
lucidr's Profile: http://www.excelforum.com/member.php...fo&userid=3669
View this thread: http://www.excelforum.com/showthread.php?threadid=56433

 
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
export filter - programmatic access to Peter Charts and Charting in Excel 0 October 28th 08 10:43 PM
Programmatic Hiding [email protected] Excel Discussion (Misc queries) 2 September 29th 07 01:13 PM
programmatic advanced filter jmcfadyen Excel Programming 2 May 24th 06 10:11 AM
Programmatic updates ozibryan[_2_] Excel Programming 0 April 6th 06 11:12 AM
Add-in does not autoload on programmatic opening Vadim Rapp Excel Programming 1 December 30th 04 10:56 PM


All times are GMT +1. The time now is 03:05 AM.

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

About Us

"It's about Microsoft Excel"