opening excel after transferSpreadsheet (1 Viewer)

shaggyjb

New member
Local time
Today, 07:07
Joined
Oct 22, 2002
Messages
8
I am using TransferSpreadsheet to export my table into a spreadsheet and this works fine, my problem is with opening the file from access. I figured this would work, i added a hyperlink on the button that also performs TransferSpreadsheet, but this does not work. Excel opens currupt. What is a good way to open the file i just made , or will the hyperlink work on the same button.

thanks
 

Rob.Mills

Registered User.
Local time
Today, 02:07
Joined
Aug 29, 2002
Messages
871
Check out the docmd.outputto in the help file. It will do the same function but also gives you an option to open the file.
 

gmann

Registered User.
Local time
Today, 07:07
Joined
Jun 24, 2002
Messages
21
DimExcelApp As Object
Dim strSaveFileName As String
Set ExcelApp = CreateObject("Excel.Application")
strSaveFileName= 'your file path and file name
With ExcelApp
.workbooks.Open strSaveFileName
.Visible = True
 

Users who are viewing this thread

Top Bottom