J
Jai
Hello All,
I am trying to write VBA code to read text from cell and write to a text
file with unicode 8 encoding.
I have copied the below mentioned quote from the forum.
Here are my points that I need your help:
1. How to code so that it writes to a file? (Instead of message box)
2. How to write the code as unicode, as the file contains Chinese & some
other Asian characters.
Sub ReadCells()
Open "c:\testfile.txt" For Output As #1
Dim oTbl As Table
Dim oRow As Row
Set oTbl = ActiveDocument.Tables(2)
For Each oRow In oTbl.Rows
' don't process if it's row 1
If oRow.Index > 1 Then
MsgBox oRow.Cells(7).Range.Text
End If
Next
End Sub
Thanks in advance
JaiM
I am trying to write VBA code to read text from cell and write to a text
file with unicode 8 encoding.
I have copied the below mentioned quote from the forum.
Here are my points that I need your help:
1. How to code so that it writes to a file? (Instead of message box)
2. How to write the code as unicode, as the file contains Chinese & some
other Asian characters.
Sub ReadCells()
Open "c:\testfile.txt" For Output As #1
Dim oTbl As Table
Dim oRow As Row
Set oTbl = ActiveDocument.Tables(2)
For Each oRow In oTbl.Rows
' don't process if it's row 1
If oRow.Index > 1 Then
MsgBox oRow.Cells(7).Range.Text
End If
Next
End Sub
Thanks in advance
JaiM