Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to write other language in text file from VBA

i have one excel sheet , in that sheet, user input in chineese character. i want to create a text file in chineese based on the user input

Please help me in this regard

Thanx in advanc

Ravi
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default how to write other language in text file from VBA

Writing Chinese characters to a text file is the same as writing English and numbers
For example, you got a list of Chinese words in column A. The following macro writes the content in Column A to the text file "TESTFILE.txt". See the following macro

Sub write_file(
Dim tmp As Singl
Open "TESTFILE.txt" For Output As #1 ' Open file for output
For tmp = 1 To Range("A1").CurrentRegion.Rows.Coun
Write #1, Range("a1").Offset(tmp - 1, 0).Value ' Write comma-delimited dat
Nex
Close #1 ' Close file
End Su

I speak Chinese and use both Simplified and Traditional Chinese in Windows English version. I tested the above approach and had no problem at all with the above macro

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone write this formula for me in Excel 2003 Language SJS Excel Worksheet Functions 4 December 2nd 06 01:28 AM
language support in excel sheet using a third party language tool seema Excel Worksheet Functions 0 March 13th 06 06:06 AM
write 1-dimensional array of integers to text file RB Smissaert Excel Programming 3 October 12th 03 05:56 PM
opening and write to a text file in excel julian brotherton Excel Programming 1 October 5th 03 11:13 PM
write a line from Excel to a text file julian_bro Excel Programming 1 September 30th 03 01:29 AM


All times are GMT +1. The time now is 07:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"