Private Sub Label1_Click()
Const MSTB_MSEXCEL = 310&
Application****n "utility.util_StartMSToolbarApp", MSTB_MSEXCEL
Dim xl As Excel.Application
Set xl = CreateObject("Excel.application")
xl.Workbooks.Open FileName:="c:\letters\zc.xls"
End Sub
That opened ZC.xls but it was like some other version as the file name was not at the top.
Now for something weird and whether thius is because Access 95 is running on WinXP, who knows. I made a new .mdb file with just a form and the label.
After I ran it a couple of times I then closed the data base down and reopened and the form had gone. However it was there because Analayse showed it up but it could not be seen in the data base. So I made another data base and ran the code a couple of times and then close and reopened the data base. The form was there but could not opened inclding in design view. Message coming was that sort stuff....the form name might be mispelled and so on.
There must be some way I can duplicate with Excel the way my code opens Word docs.
I think I have moved from disliking Excel to hating Excel
Mike