error opening application

k209310

Registered User.
Local time
Today, 19:32
Joined
Aug 14, 2002
Messages
184
I have the follwing code that opens up an Excel Template i have two errors with it


Private Sub Command3_Click()
'Open, and make visible the Excel Template (Request.xlt)
Set objXL = GetObject("J:\DATA\ESTIMATI\Chedley\Quotation Files\ACCESS 97 TEST Static.xlt")

objXL.Application.Visible = True
objXL.Parent.Windows(1).Visible = True

End Sub

There are two errors with the code

1) The template wizard will not open with the document

2) The program window freezes and i get an application error telling me that the applciation can not read the memory location.

Do i have a problem with the code?
 

Users who are viewing this thread

Back
Top Bottom