D
Dario de Judicibus
I need some help. I am not an Excel macro programmer. I wished to use the
following macro I found in Internet to save my sheet as text without quotes.
However, I need to save it as Unicode text. How should the macro be changed?
Can you help me please? Please, consider that I am not able to program
Excel.
---
Public Sub TextNoModification()
Const DELIMITER As String = "CHR(9)" 'or "|", ",", etc.
Dim myRecord As Range
Dim myField As Range
Dim sOut As String
Open "Test.txt" For Output As #1
For Each myRecord In Range("A1:A" & Range("A" & Rows.Count).End(xlUp).Row)
With myRecord
For Each myField In Range(.Cells(1), Cells(.Row,
Columns.Count).End(xlToLeft))
sOut = sOut & DELIMITER & myField.Text
Next myField
Print #1, Mid(sOut, 2)
sOut = Empty
End With
Next myRecord
Close #1
End Sub
following macro I found in Internet to save my sheet as text without quotes.
However, I need to save it as Unicode text. How should the macro be changed?
Can you help me please? Please, consider that I am not able to program
Excel.
---
Public Sub TextNoModification()
Const DELIMITER As String = "CHR(9)" 'or "|", ",", etc.
Dim myRecord As Range
Dim myField As Range
Dim sOut As String
Open "Test.txt" For Output As #1
For Each myRecord In Range("A1:A" & Range("A" & Rows.Count).End(xlUp).Row)
With myRecord
For Each myField In Range(.Cells(1), Cells(.Row,
Columns.Count).End(xlToLeft))
sOut = sOut & DELIMITER & myField.Text
Next myField
Print #1, Mid(sOut, 2)
sOut = Empty
End With
Next myRecord
Close #1
End Sub