G
Guest
Hi
I'm having difficulty suppressing warnings when I export data to excel. The
excel file has a macro in it that i need and i would like to remove to
warning prompt i get each time i export. Below is the code i'm using.
Thanks for your help
Private Sub Export_CMD_Click()
Dim ExcelWorkbook As Object
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8,
"Brand_Market_Main", "c:\Brand & Market Data\PivotTable_Tool", True, ""
Excel.Application.DisplayAlerts = False
Set ExcelWorkbook = GetObject("c:\Brand & Market Data\PivotTable_Tool.xls")
End Sub
I'm having difficulty suppressing warnings when I export data to excel. The
excel file has a macro in it that i need and i would like to remove to
warning prompt i get each time i export. Below is the code i'm using.
Thanks for your help
Private Sub Export_CMD_Click()
Dim ExcelWorkbook As Object
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8,
"Brand_Market_Main", "c:\Brand & Market Data\PivotTable_Tool", True, ""
Excel.Application.DisplayAlerts = False
Set ExcelWorkbook = GetObject("c:\Brand & Market Data\PivotTable_Tool.xls")
End Sub