I have a form with a button. When the user clicks on the button I'd like an Excel file to open (so that the user can add or remove data to the file which is totaly seperate from the Access application). The following is my code:
When I run this code I get no error and it looks like it's doing something. But I never see Excel open. If I check the processes Excel is running. So apparantly it's opening but the user can't see it. How can I unhide it?
Thanks
Code:
Private Sub cmdDateBook_Click()
Dim xlTmp As Excel.Application
Dim wb As workBook
Dim filePath As String
filePath = "ThePath"
Set xlTmp = New Excel.Application
Set wb = xlTmp.Workbooks.Open(filePath)
End Sub
When I run this code I get no error and it looks like it's doing something. But I never see Excel open. If I check the processes Excel is running. So apparantly it's opening but the user can't see it. How can I unhide it?
Thanks