vba - Read Chinese characters from Excel worksheet? (Always returns "????") -
how read chinese characters excel cells , write them file? when take values
worksheets(activecell.worksheet.name).cells(3, columnnumbers(0)).value
it returns "????????"
dim filestream, filepath string 'full properties file path propfilepath = "c:\file.properties" 'create stream object set filestream = createobject("adodb.stream") 'specify stream type – want save text/string data. filestream.type = 2 'specify charset source text data. filestream.charset = "utf-8" 'open stream , write binary data object filestream.open filestream.writetext "write here" 'save binary data disk filestream.savetofile filepath, 2 filestream.close
Comments
Post a Comment