ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open Ms Access File (https://www.excelbanter.com/excel-programming/276882-open-ms-access-file.html)

milo[_2_]

Open Ms Access File
 
What code can I use to open an Ms Access file from Excel?

Thanks,
Milo

Ronald Dodge

Open Ms Access File
 
Dim acApp as Access.Application
Set acApp = CreateObject(<FileFullName,Access.Application)

Notes:

<FileFullName needs to include the full path name to the file, the file
name and including the file's up to 3 letter extension.

Before running this code, you will need to be sure that you have in your
Excel VBA a reference to Access, which can be gotten to by ToolsReferences
within your VBE window.

To refer to the Access application/file, you will need to use the acApp
variable to prequalify your Access objects, unless the code is using a
variable that already reference to the object(s).

--
Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
"milo" wrote in message
...
What code can I use to open an Ms Access file from Excel?

Thanks,
Milo





All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com