Hi,
USING: Office 2000 professional
AIM: output a crosstab query from access to excel (and open it in excel), then save and close the excel file automatically (then open C:sccnew.xls from automatically)
TRIED: Using access's OutputTo macro and then placing the folowing code in the ThisWorkbook module of the excell file;
Private Sub Workbook_Open()
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub
RESULT: When access outputs the query to the file it erases the modules and macros within the file. Opening the excel file manually to run the code allows the code to run as desired.
I can't think of another way to attack this problem any suggestions you can make will be greatly apprieciated.
cunnie
USING: Office 2000 professional
AIM: output a crosstab query from access to excel (and open it in excel), then save and close the excel file automatically (then open C:sccnew.xls from automatically)
TRIED: Using access's OutputTo macro and then placing the folowing code in the ThisWorkbook module of the excell file;
Private Sub Workbook_Open()
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub
RESULT: When access outputs the query to the file it erases the modules and macros within the file. Opening the excel file manually to run the code allows the code to run as desired.
I can't think of another way to attack this problem any suggestions you can make will be greatly apprieciated.
cunnie