I have tried this method (Macro/Transfer Text) and my file name never
prompts
for the user input but rather gives me a file name of C:\MyPath\
InputBox(enter date mmddyyyy) & .txt Any reason why the InputBox prompt
would be looked at as just part of the filename and not the function?
:
If you just want to enter a filename, use InputBox to get it from user:
File Name: ="C:\MyPath\" & InputBox("Enter File Name:")
If you want to enter the full path and file name:
File Name: =InputBox("Enter Path and File Name:")
If you want to browse to the file, you can use an API function to open
the
"File Open" dialog box. This page on The ACCESS Web has code for using
the
API to do this. You can substitute the ahtCommonFileOpenSave function
call
in the argument list in the TransferText action, similar to the
examples
above:
http://www.mvps.org/access/api/api0001.htm
--
Ken Snell
<MS ACCESS MVP>
message
I am trying to create a macro to export a table as a csv file and i
want
the
macro to ask me for the file name when i run it instead of putting
one in
the
"file Name" field