Using the code from a previous post I was able to open an excel spreadsheet through VB on a control button.
However, when the spreadsheet opens, it's external data ranges (which use Microsoft Query to get data from the DB) do not refresh. Their properties are set to refresh on file open and they do refresh properly IF the spreadsheet is opened through windows explorer or Excel itself. Why won't they refresh when opened using Access?
Dim XL As Object
updateTable
Set XL = CreateObject("Excel.Application")
tempAppPath = "K:\Export\CustDocs\COA\Formatted\" & Me.Formula & ".xls"
With XL.Application
.Visible = True
.workbooks.Open tempAppPath
End With
Set XL = Nothing
Any ideas??
However, when the spreadsheet opens, it's external data ranges (which use Microsoft Query to get data from the DB) do not refresh. Their properties are set to refresh on file open and they do refresh properly IF the spreadsheet is opened through windows explorer or Excel itself. Why won't they refresh when opened using Access?
Dim XL As Object
updateTable
Set XL = CreateObject("Excel.Application")
tempAppPath = "K:\Export\CustDocs\COA\Formatted\" & Me.Formula & ".xls"
With XL.Application
.Visible = True
.workbooks.Open tempAppPath
End With
Set XL = Nothing
Any ideas??