Hi guys i working on a project that open an excel document using vb6 but i encounter this.
Run-time error 1004 :
C:\aaaaa\aaaa\myBook1.xls' could not be found. Check the spelling of the file name, and verify that the file location is correct.
This is the Code:
Private Sub Form_Click()
Dim xlApp As Excel.Application
Set xlApp = New Excel.Application
xlApp.Workbooks.Open (App.Path & "\myBook1.xls")
xlApp.Visible = True
tell what is wrong with my code... thanks in advance