DoCmd.OutputTo

T

TAMMY

If I use the OutputTo command to output information on a
form to an excel file, it disables or doesn't run any
code that I have on the Workbook_Open()event of the excel
file. Does anyone know why?

Code below:

DoCmd.OutputTo acOutputForm, "Form Name",
acFormatXLS, "Excel File Name", False
 
J

John Nurick

Hi Tammy,

As far as I can tell, OutputTo creates an entirely new Excel file every
time. If you use the name of an existing file, this is overwritten along
with any macros it may contain.
 

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