Opening Excel from VB project
I am trying to open an existing EXCEL file that will pop up when the user clicks a label and allow him to edit it and save it as any filename. I have the reference to excel objects checked but can't seem to get it to work. A blank "book1" EXCEL file pops up when I use the following code:
Private Sub Label4_Click()
Dim MyXL As Object
Set MyXL = GetObject("c:\My Documents\admin\start.xls")
MyXL.Application.Visible = True
MyXL.Parent.Windows(1).Visible = True
End Sub
What am I doing wrong?
Thanks for any help!