G
Geoff C
Hi I'm trying to adapt a macro that "saves" a spreadsheet as pipe-delimited
text. The macro I've found on the web does what it says on the tin, but has a
hard-coded file name,
Open "C:data.txt" For Output As #1
and at a certain point in the macro, it use the line
Print #1, CurrTextStr
to save the data. I was hoping to find a way to get the user to detemine the
output path/filename rather than having it hard-coded, but I just don't
understand the filedialog syntax well enough to make it work. Can anyone
help with this?
Many thanks,
Geoff.
text. The macro I've found on the web does what it says on the tin, but has a
hard-coded file name,
Open "C:data.txt" For Output As #1
and at a certain point in the macro, it use the line
Print #1, CurrTextStr
to save the data. I was hoping to find a way to get the user to detemine the
output path/filename rather than having it hard-coded, but I just don't
understand the filedialog syntax well enough to make it work. Can anyone
help with this?
Many thanks,
Geoff.