Hello,
I read file from EXCEL and write into a text file.
The output in the text file is SQL statments and the output
have double quote in tne beginning and in the end.
How to get rid of the double quotes in begin and in end????
For example, the output in text file is:
"Update table1 set dept = '01' Where id = 999"
"Update table1 set dept = '02' Where id = 9888"
"Delete table1 set Where id = 9999"
Here is my code:
Open ThisWorkbook.Path & "\testfile.txt" For Output As #1
For i = FirstRow + 1 To LastRow
vData0 = "Update eInventory_Inventory set "
For j = FirstCol + 1 To LastCol
....................
I read file from EXCEL and write into a text file.
The output in the text file is SQL statments and the output
have double quote in tne beginning and in the end.
How to get rid of the double quotes in begin and in end????
For example, the output in text file is:
"Update table1 set dept = '01' Where id = 999"
"Update table1 set dept = '02' Where id = 9888"
"Delete table1 set Where id = 9999"
Here is my code:
Open ThisWorkbook.Path & "\testfile.txt" For Output As #1
For i = FirstRow + 1 To LastRow
vData0 = "Update eInventory_Inventory set "
For j = FirstCol + 1 To LastCol
....................