Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Mar 2002
    Location
    North Carolina, USA
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Save as encoded-UTF8 text in macro (2000, 2002)

    Does anyone know how to make a macro save text as encoded text , UTF8? I've seen the property FileFormat of the SaveAs method, and how to set it to wdFormatEncodedText, but how do I pick UTF8 out of all the other encoding possibilities?

  2. #2
    Star Lounger
    Join Date
    Mar 2002
    Location
    North Carolina, USA
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Save as encoded-UTF8 text in macro (2000, 2002

    Found an answer to my question, in Word 2002 you can do this command:

    ActiveDocument.SaveAs FileName:=FNameSF$, FileFormat:=wdFormatText,Encoding:=65001

    But there doesn't seem to be a way to do this in Word 2000 (the above command fails because it doesn't recognize the "Encoding" parameter.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •