Use an expression for the File Name argument:
="C:\YourFolderName\BaseFileName" & InputBox("Enter week number:","Week
Number") & ".xls"

Signature
Ken Snell
<MS ACCESS MVP>
> Hello,
> I have a macro where I use TransferSpreadsheet to export a table into
[quoted text clipped - 9 lines]
>
> Thanks!
Lina - 23 Apr 2007 16:19 GMT
Thank you very much, it worked perfectly!
On Apr 20, 4:01 pm, "Ken Snell \(MVP\)"
<kthsneisll...@ncoomcastt.renaetl> wrote:
> Use an expression for the File Name argument:
>
[quoted text clipped - 21 lines]
>
> - Show quoted text -