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

I have a macro that pulls data from a SQL database,
formats it, and saves it into csv files. This macro has
worked perfectly for 7 months but recently the formatting
has stopped saving to the csv files. The date formats
specifically are not saving. If I leave the csv file open
and manually save it, the date formats save as normal.
Why would a manual save correctly save date formats but
the save function does not?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Saving CSV files in Excel macros

some things, if touched by VBA, seem to adopt either a US centric format or
(less often) a regional version format.

Have you changed versions of Excel recently? I believe the effect differs
by version, with later versions being gradually more international aware.

--
Regards,
Tom Ogilvy

"bslater" wrote in message
...
I have a macro that pulls data from a SQL database,
formats it, and saves it into csv files. This macro has
worked perfectly for 7 months but recently the formatting
has stopped saving to the csv files. The date formats
specifically are not saving. If I leave the csv file open
and manually save it, the date formats save as normal.
Why would a manual save correctly save date formats but
the save function does not?

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving CSV files in Excel macros

Thanks for replying Tom. As for my excel version, it is very possible
that the version has changed, but I wouldn't know. My company has a
knack for changing things without letting anyone know. My current
excel version is 9.0.4402 SR-1 (excel 2000). If this is indeed what
is occuring, how would I go about bypassing VBA's adoption of the
different formats?

Thanks!

Brian



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly 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
Excel changes macros when saving as pdf Super Duper Excel Discussion (Misc queries) 0 May 15th 10 05:29 AM
Saving files with macros Skip Bisconer New Users to Excel 1 October 17th 08 02:10 AM
NOT saving Excel files Terry Hope Excel Discussion (Misc queries) 2 December 12th 06 11:18 PM
Saving Macros in Excel Erin Excel Discussion (Misc queries) 7 November 10th 06 10:05 PM
Macros and saving .csv files whatageek Excel Discussion (Misc queries) 2 June 26th 06 02:08 PM


All times are GMT +1. The time now is 01:44 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"