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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save document in unicode charset

Status
Not open for further replies.

aidaaida

Programmer
Joined
Feb 20, 2004
Messages
2
Location
SI
Hello!

I have word document written in windows charset 1250. I wish to save it in other file (document.utf) in UTF-8 coding. How can I do that in VBA?

Thx.
 
Depends on your Word version. The following code is valid for Word 2000 (perhaps also for 97) but not for XP/2003:
Code:
With ActiveDocument
  .SaveEncoding = msoEncodingUTF8
  .SaveAs FileName:=[i]"document.utf", _
  FileFormat:=wdFormatUnicodeText
End With

Cheers,
MakeItSo

Andreas Galambos
EDP / Technical Support Specialist
(andreas.galambos@bowneglobal.de)
HP:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top