Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save As unicode

Status
Not open for further replies.

yeungsprite

Programmer
Joined
Nov 28, 2002
Messages
25
Location
US
Hi,
I am importing a unicode text file into Excel, modifying it, and then saving it. The problem i am having is that my command:

xlBook.Application.SaveWorkspace "valid.txt"

is not saving as a Unicode file, so when i try and reopen the modified file, it is gibberish. There are two possible options when saving as a text file in the Save As dialog box:

1. Text (Tab delimited) (*.txt)
2. Unicode Text (*.txt)

How do i specify to save as unicode txt file?

Thanks in advance
 
ActiveWorkbook.SaveAs FileName:="C:\myfiled\file.txt", FileFormat :=xlUnicodeText, CreateBackup:=False
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top