Mar 11, 2004 #1 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.
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.
Mar 11, 2004 #2 MakeItSo Programmer Joined Oct 21, 2003 Messages 3,316 Location DE 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: http://www.andygalambos.de Upvote 0 Downvote
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: http://www.andygalambos.de