11 Replies Latest reply: Jan 9, 2015 10:34 AM by Filip Larsson RSS

    ANSI coding in textfile from macro

    Filip Larsson

      Hi everyone,

       

      I have this macro (VBScript) in which I export a table into a textfile:

       

      Sub ExportToTextfile

          Set tableObject = ActiveDocument.GetSheetObject("TB01")

          tableObject.Export "C:/TEST.txt",Chr(9)

      End Sub

       

      My problem is that the exported file has an UTF-8 encoding. I would like to export into ANSI encoding, or convert it into ANSI encoding if possible. Anybody here that knows this?

       

      Best regards,

      Filip