J
JeroenM
In Access I wrote VBA programm to export a query to Excel and to change the
page layout.
DoCmd.OutputTo acOutputQuery, "Q_Totaal_Kruistabel", acFormatXLS,
Left(CurrentDb.Name, y - 2) & "\Status" & Koptekst & "_" & Wiltekst & ".xls",
True
Set xlApp = GetObject(, "Excel.Application")
For the Page Setup of the new Excel file, I would like to have the
following settings: "Fit to 1 by 1 pages"
What is the VBA code, so the result will be fitted on 1 by 1 pages?
Thanks in advance,
JeroenM.
page layout.
DoCmd.OutputTo acOutputQuery, "Q_Totaal_Kruistabel", acFormatXLS,
Left(CurrentDb.Name, y - 2) & "\Status" & Koptekst & "_" & Wiltekst & ".xls",
True
Set xlApp = GetObject(, "Excel.Application")
For the Page Setup of the new Excel file, I would like to have the
following settings: "Fit to 1 by 1 pages"
What is the VBA code, so the result will be fitted on 1 by 1 pages?
Thanks in advance,
JeroenM.