Hello,
Could anyone of you please have a look in to the below issue.
I have used below VBA Macro to create a Text file with Delimit from Excel.
Sub t()
Open "D:\Temp\test1.txt" For Output As #1
introw = 1
For Each c In Worksheets("Sheet2").UsedRange.Cells
If c.Row > introw Then
introw = c.Row
Print #1, vbNewLine
End If
Print #1, c.Text & "|"
Next c
Close #1
End Sub
------ Generated file was in below format. (Attached)
Sunil|
123456790|
SSN|
9.09E+08|
Sunil|
Esgiri|
|
|
Girish|
Required:
1) I want data only (A2- BO2) not the descriptions (A1 - BO1)
2) I want the Text file in following format Sunil|123456790|SSN|9.09E+08|Sunil|i|||Girish||
Please let me know, if you need any additional information.
Thanks,
Esgiri.
Could anyone of you please have a look in to the below issue.
I have used below VBA Macro to create a Text file with Delimit from Excel.
Sub t()
Open "D:\Temp\test1.txt" For Output As #1
introw = 1
For Each c In Worksheets("Sheet2").UsedRange.Cells
If c.Row > introw Then
introw = c.Row
Print #1, vbNewLine
End If
Print #1, c.Text & "|"
Next c
Close #1
End Sub
------ Generated file was in below format. (Attached)
Sunil|
123456790|
SSN|
9.09E+08|
Sunil|
Esgiri|
|
|
Girish|
Required:
1) I want data only (A2- BO2) not the descriptions (A1 - BO1)
2) I want the Text file in following format Sunil|123456790|SSN|9.09E+08|Sunil|i|||Girish||
Please let me know, if you need any additional information.
Thanks,
Esgiri.