Macro: a different kind of Save dialog box?

  • Thread starter Milhouse Van Houten
  • Start date
M

Milhouse Van Houten

Hello,

I have the macro below, which prompts for a location to save the file to,
but only by browsing to the location. Is there a way where I can get a
dialog box instead (or in addition) that would allow me to directly type in
a path and hit enter?

I'm using Access 2007 SP2

Thanks

'------------------------------------------------------------
' ExportPayrollConfirmation
'
'------------------------------------------------------------
Function ExportPayrollConfirmation()
On Error GoTo ExportPayrollConfirmation_Err

DoCmd.OutputTo acOutputQuery, "Payroll_Confirmation",
"Excel97-Excel2003Workbook(*.xls)", "", False, "", 0, acExportQualityPrint
DoCmd.OutputTo acOutputQuery, "QRYPrlIncompleteFiles",
"Excel97-Excel2003Workbook(*.xls)", "", False, "", 0, acExportQualityPrint

ExportPayrollConfirmation_Exit:
Exit Function

ExportPayrollConfirmation_Err:
MsgBox Error$
Resume ExportPayrollConfirmation_Exit

End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top