Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need help with 2 Macros. The first sample opens Access, but does not show
the menu on the right where you can choose a blank database or a previous completed database. The sample I show below is where I tried to convert a Macro that opens a blank Word Document. Sub NewAccessOnly() Dim oAccessApp As Object Set oAccessApp = CreateObject("Access.Application") oAccessApp.Visible = True oAccessApp.Documents.Add DocumentType:=wdNewBlankDocument End Sub The next sample is again where I have tried to modify an existing Macro that opens a actual Word Document. Naturally, it doesn't work either. Sub NewAccessWithDocument() Dim oAccessApp As Object Dim oAccessDoc As Object Set oAccessApp = CreateObject("Access.Application") oAccessApp.Visible = True Set oAccessDoc = oWordApp.Documents.Open( _ "C:\documents and settings\default\my documents\AVPDatabaseSample.mdb") End Sub I'm not a strong programmer, but this looks like the last step to be completed in my project. I would appreciate any help with these 2 Macros. Thanks in Advance Matt@Launchnet -- Please take a look at www.openoursite.com Click on: "Keywords" and then Click on "Matt's Story" and if you are a man, you should be very happy that you read my story. God Bless for everyones help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Password to open or access | Excel Worksheet Functions | |||
Open Access Database with VBA | Excel Discussion (Misc queries) | |||
Open Access Database with VBA | Excel Discussion (Misc queries) | |||
Excel cannot open Access MDB | Excel Discussion (Misc queries) | |||
Open Access Database under and Excel window using a Macro | Excel Worksheet Functions |