PC Review


Reply
Thread Tools Rate Thread

convert to csv using macro gives wrong seperator

 
 
Patrick Goovaerts
Guest
Posts: n/a
 
      2nd Oct 2007
Hi,

We used to store excel data to a CSV file on our server to be pickup by
another program. This is always done with a macro which simply executes a
save-to-csv.

Since installing Office2007, this macro writes this CSV file with a wrong
delimeter. The file is generated with a ',' in stead of a ';' (which is
defined). When we save the document as CSV without the macro (manual
process) the file is correctly written...

any suggestions?


 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      2nd Oct 2007
Try using the "Local" parameter in your macro (I assume you're using the
SaveAs method):

ActiveWorkbook.SaveAs Filename:="C:\Book1.csv", FileFormat:=xlCSV,
Local:=True

--
Jim
"Patrick Goovaerts" <(E-Mail Removed)> wrote in message
news:47021258$0$22314$(E-Mail Removed)...
| Hi,
|
| We used to store excel data to a CSV file on our server to be pickup by
| another program. This is always done with a macro which simply executes a
| save-to-csv.
|
| Since installing Office2007, this macro writes this CSV file with a wrong
| delimeter. The file is generated with a ',' in stead of a ';' (which is
| defined). When we save the document as CSV without the macro (manual
| process) the file is correctly written...
|
| any suggestions?
|
|


 
Reply With Quote
 
patrick goovaerts
Guest
Posts: n/a
 
      2nd Oct 2007
Thanks!

"Jim Rech" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> Try using the "Local" parameter in your macro (I assume you're using the
> SaveAs method):
>
> ActiveWorkbook.SaveAs Filename:="C:\Book1.csv", FileFormat:=xlCSV,
> Local:=True
>
> --
> Jim
> "Patrick Goovaerts" <(E-Mail Removed)> wrote in message
> news:47021258$0$22314$(E-Mail Removed)...
> | Hi,
> |
> | We used to store excel data to a CSV file on our server to be pickup by
> | another program. This is always done with a macro which simply executes
> a
> | save-to-csv.
> |
> | Since installing Office2007, this macro writes this CSV file with a
> wrong
> | delimeter. The file is generated with a ',' in stead of a ';' (which is
> | defined). When we save the document as CSV without the macro (manual
> | process) the file is correctly written...
> |
> | any suggestions?
> |
> |
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert the data after wrong column bound? CW Microsoft Access 0 9th Apr 2008 11:48 PM
convert a Word macro to an Excel macro jsd219 Microsoft Excel Programming 24 27th Oct 2006 03:58 PM
DOUBLE POST--Sorry wrong category first--Convert to VB Pleaseeee Derek Y via OfficeKB.com Microsoft Excel Programming 1 30th Jul 2005 05:05 PM
DOUBLE POST--Sorry wrong category first--Convert to VB Pleaseeee Derek Y via OfficeKB.com Microsoft Excel Programming 0 29th Jul 2005 08:53 PM
Want to use 100 seperator instead of 1000 seperator =?Utf-8?B?SWxhbmdv?= Microsoft Word Document Management 1 21st May 2005 01:40 PM


Features
 

Advertising
 

Newsgroups
 


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