G
Guest
I am exporting some data to Excel - and all is going well (thanks to this
group!), and I thought it would be good to give the user the option to check
what they had exported, so here is the code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "ExportExl", _
CurrentProject.Path & "\" & sFile, True
If MsgBox("Do you want to view the file?", vbYesNo) = vbYes Then
spath = CurrentProject.Path & "\" & sFile & ".xls"
FollowHyperlink spath
End If
What happens is that Excel appears to open, but then the windows "freeze" -
I am left with what I will call the Excel "shell" ie menu bars, round my
Access window. I tried closing down the Access window and then tried to open
the spreadsheet, but it said it was already open.
I feel I am so close!!
Many thanks
Helen
group!), and I thought it would be good to give the user the option to check
what they had exported, so here is the code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "ExportExl", _
CurrentProject.Path & "\" & sFile, True
If MsgBox("Do you want to view the file?", vbYesNo) = vbYes Then
spath = CurrentProject.Path & "\" & sFile & ".xls"
FollowHyperlink spath
End If
What happens is that Excel appears to open, but then the windows "freeze" -
I am left with what I will call the Excel "shell" ie menu bars, round my
Access window. I tried closing down the Access window and then tried to open
the spreadsheet, but it said it was already open.
I feel I am so close!!
Many thanks
Helen