Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Error when saving as TAB TXT (euro transforms in $)

Hi.

I've made a simple macro to save 2 sheets do a txt tab separated. The
problem is that the numbers formated as "currency" (with a euro sign)
end up with a dollar sign in the resulting txt.

Does anyone knows why this is hapenning?

this is my code


Sheets("HOLDI").Select
ActiveWorkbook.SaveAs Filename:=3D _
ActiveWorkbook.Path & "\..\Dados_holdi.txt" _
, FileFormat:=3DxlText, CreateBackup:=3DFalse
Sheets("EMP").Select
ActiveWorkbook.SaveAs Filename:=3D _
ActiveWorkbook.Path & "\Dados_emp.txt" _
, FileFormat:=3DxlText, CreateBackup:=3DFalse

ActiveWindow.Close

Thnks a lot

SpeeD
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Error when saving as TAB TXT (euro transforms in $)

Try the below macro

Sub Macro3()
Dim strPath As String

strPath = ActiveWorkbook.Path & "\"
Application.DisplayAlerts = False

Sheets("HOLDI").Select
ActiveWorkbook.SaveAs Filename:=strPath & "Dados_holdi.txt", _
FileFormat:=xlText

Sheets("EMP").Select
ActiveWorkbook.SaveAs Filename:=strPath & "Dados_emp.txt", _
FileFormat:=xlText

Application.DisplayAlerts = True
ActiveWindow.Close False

End Sub

If this post helps click Yes
---------------
Jacob Skaria


"SpeeD" wrote:

Hi.

I've made a simple macro to save 2 sheets do a txt tab separated. The
problem is that the numbers formated as "currency" (with a euro sign)
end up with a dollar sign in the resulting txt.

Does anyone knows why this is hapenning?

this is my code


Sheets("HOLDI").Select
ActiveWorkbook.SaveAs Filename:=3D _
ActiveWorkbook.Path & "\..\Dados_holdi.txt" _
, FileFormat:=3DxlText, CreateBackup:=3DFalse
Sheets("EMP").Select
ActiveWorkbook.SaveAs Filename:=3D _
ActiveWorkbook.Path & "\Dados_emp.txt" _
, FileFormat:=3DxlText, CreateBackup:=3DFalse

ActiveWindow.Close

Thnks a lot

SpeeD

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
xml transforms to rearrange worksheet data? Clif McIrvin[_3_] Excel Discussion (Misc queries) 0 September 21st 11 09:08 PM
error on saving Marcelo Setting up and Configuration of Excel 0 April 19th 10 09:52 PM
Fast fourier transforms dazzler2058 Excel Worksheet Functions 0 January 13th 10 04:29 PM
Excel 2007 - error saving file & error loading dll TinaF Excel Discussion (Misc queries) 0 July 1st 09 01:49 PM
Saving Error Dave Excel Discussion (Misc queries) 0 September 5th 06 02:23 PM


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