View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] bdelegan@gmail.com is offline
external usenet poster
 
Posts: 1
Default save worksheet with chinese characters as text

I use a data table in a worksheet in combination with VBA to generate
XML configuration files. Using VBA, I format the XML in a temp
workbook and then save the temp workbook as XML using the following:
ActiveWorkbook.SaveAs Filename:=thedir + thefile,
FileFormat:=xlTextPrinter, CreateBackup:=False

This has worked perfect for English, French, etc. However, it does not
work for Chinese Mandarin or other character-based languages. When I
save using FileFormat:=xlTextPrinter, I get ? for the characters. I've
tried several other file formats. xlTextPrinter is the only file
format that gives me a clean/correct XML file.