I've searched the KB and past posts in here without success so far. Basically I'm using the following code to display an Excel file, the name of which I have in a ListBox. This is under the double_click event:
Dim Obj as Object
Set Obj = GetObject(Me.ListAssDocs) ' full path here
Obj.Application.Visible = True
Exit Sub
Although Excel opens I cant get it to display the specific file. How do I get it to do this? I cant declare Obj as an Excel Application as there will be occasions when the user will want to open a PowerPoint file etc.
Dim Obj as Object
Set Obj = GetObject(Me.ListAssDocs) ' full path here
Obj.Application.Visible = True
Exit Sub
Although Excel opens I cant get it to display the specific file. How do I get it to do this? I cant declare Obj as an Excel Application as there will be occasions when the user will want to open a PowerPoint file etc.