C
cogent
Hello
I am using VBA to create a script in text format. Inexplicably, the SaveAs
xlText VBA commands add phantom quotation marks which cause the script to be
unusable.
Here is the conmmand as written:
I use
Newbook.Worksheets("Sheet1").Range("A1").Resize(UBound(TheArray, 1),
UBound(TheArray, 2)).Value = TheArray
to paste in the array.... Debug.Print shows no problems....
Here is the text as it appears in the array at all stages prior to being
saved:
echo on
textsave sort.out.txt
|
| ***************************************
| * PROGRAM SCRIPT *
| ***************************************
|
| Step 1 Deletes all the previous junk. Be careful.
local rm -Rf *.csv *.CSV *.out A B C D E F G
|---- Preamble -------------------------------------
|
| This covers any global parameters, or things we are not currently
| using.
|
version 1.24
time
debug off
auditing off
No problems.
I use
Newbook.SaveAs rFileLocation & "\" & SaveName & ".txt", FileFormat:=xlText
to save it...
BUT THIS IS HOW IT IS SAVED:
echo on
textsave sort.out.txt
|
| ***************************************
| * PROGRAM SCRIPT *
| ***************************************
|
| Step 1 Deletes all the previous junk. Be careful.
local rm -Rf *.csv *.CSV *.out A B C D E F G
|---- Preamble -------------------------------------
|
"| This covers any global parameters, or things we are not currently"""
| using.
|
version 1.24
time
debug off
auditing off
There are quotation marks that appear here as above and in other places in
the script.
It is enough to drive a man to madness. What gives???
W
I am using VBA to create a script in text format. Inexplicably, the SaveAs
xlText VBA commands add phantom quotation marks which cause the script to be
unusable.
Here is the conmmand as written:
I use
Newbook.Worksheets("Sheet1").Range("A1").Resize(UBound(TheArray, 1),
UBound(TheArray, 2)).Value = TheArray
to paste in the array.... Debug.Print shows no problems....
Here is the text as it appears in the array at all stages prior to being
saved:
echo on
textsave sort.out.txt
|
| ***************************************
| * PROGRAM SCRIPT *
| ***************************************
|
| Step 1 Deletes all the previous junk. Be careful.
local rm -Rf *.csv *.CSV *.out A B C D E F G
|---- Preamble -------------------------------------
|
| This covers any global parameters, or things we are not currently
| using.
|
version 1.24
time
debug off
auditing off
No problems.
I use
Newbook.SaveAs rFileLocation & "\" & SaveName & ".txt", FileFormat:=xlText
to save it...
BUT THIS IS HOW IT IS SAVED:
echo on
textsave sort.out.txt
|
| ***************************************
| * PROGRAM SCRIPT *
| ***************************************
|
| Step 1 Deletes all the previous junk. Be careful.
local rm -Rf *.csv *.CSV *.out A B C D E F G
|---- Preamble -------------------------------------
|
"| This covers any global parameters, or things we are not currently"""
| using.
|
version 1.24
time
debug off
auditing off
There are quotation marks that appear here as above and in other places in
the script.
It is enough to drive a man to madness. What gives???
W