VBS help

Gil

Can't get enough of FH
Joined
Dec 22, 2003
Messages
151
Dunno if any of ya can help me, but it will be much appreciated, I want to change this script

' Prompt user for destination file name.
DestFile = InputBox("Enter the destination filename" _
& Chr(10) & "(with complete path):", "Quote-Comma Exporter")

so instead of the user specifying the .txt file to save it gets saved as a predetermined txt file eg c:\test.txt

or if ya can point me in the direction of a tutorial so I can learn/work it out for myself.

Thanks
 

TheJkWhoSaysNi

One of Freddy's beloved
Joined
Dec 23, 2003
Messages
187
maybe

DestFile = "C:\test.txt";

I dont really know much VB. it depens what data type InputBox() returns. Anyway, try what i suggested. It may work.
 

Gil

Can't get enough of FH
Joined
Dec 22, 2003
Messages
151
Thanks :worthy: , it worked, just had to leave the semi-colon off
 

Users who are viewing this thread

Top Bottom