Hello all,
I have the following code that exports my access query into an excel spreadsheet, but it does not open the excel file, it only saves it in my folder, how do I make the excel file open from that folder?
Thanks for your help!
I have this other code that is supposed to open the excel file, but excel opens up without an actual spreadsheet opening up:
Dim Obj1 As Object
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "QueryDetails", "C:\QueryDetail.xls", True
Set Obj1 = GetObject("C:\QueryDetail.xls")
Obj1.Application.Visible = True
I have the following code that exports my access query into an excel spreadsheet, but it does not open the excel file, it only saves it in my folder, how do I make the excel file open from that folder?
Thanks for your help!
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "QueryDetails", "C:\QueryDetail.xls", True
I have this other code that is supposed to open the excel file, but excel opens up without an actual spreadsheet opening up:
Dim Obj1 As Object
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "QueryDetails", "C:\QueryDetail.xls", True
Set Obj1 = GetObject("C:\QueryDetail.xls")
Obj1.Application.Visible = True