Hello,
I got the following code yesterday to open an Access file from Excel VBA. It works great. My next step is to close what I believe is a form that opens when file activates. Form has an "OK" button to close. Need to activate that button or "tab" three times then use "enter" key to close the form.
Thanks,
Cliff
Dim db As Access.Application
Sub test_opendb()
Set db = New Access.Application
db.OpenCurrentDatabase "c:\Program Files\opsnet\Opsnet20.mde"
db.Application.Visible = True
End Sub
I got the following code yesterday to open an Access file from Excel VBA. It works great. My next step is to close what I believe is a form that opens when file activates. Form has an "OK" button to close. Need to activate that button or "tab" three times then use "enter" key to close the form.
Thanks,
Cliff
Dim db As Access.Application
Sub test_opendb()
Set db = New Access.Application
db.OpenCurrentDatabase "c:\Program Files\opsnet\Opsnet20.mde"
db.Application.Visible = True
End Sub