A
Andibevan
I am trying to create some code the Will Be Run From MS Access 2k in order
to open a Project file and then save it as an mdb
I want it to do this without any prompts for the user to hit. I have tried
the following but the user is still prompted - What do I need to do in order
to get this to work without any prompts?
TIA
Andi
Sub TestConvert()
Dim oMSProject As MSProject.Application
Set oMSProject = CreateObject("MSProject.Application")
oMSProject.Application.DisplayAlerts = False
oMSProject.FileOpen Name:="C:\Documents\Dependancies V34.mpp",
ReadOnly:=True, FormatID:="MSProject.MPP"
oMSProject.FileSaveAs Name:="<C:\Documents\V34_Convert.mdb>",
FormatID:="MSProject.MDB8"
oMSProject.Application.DisplayAlerts = True
oMSProject.Quit
oMSProject = Nothing
End Sub
to open a Project file and then save it as an mdb
I want it to do this without any prompts for the user to hit. I have tried
the following but the user is still prompted - What do I need to do in order
to get this to work without any prompts?
TIA
Andi
Sub TestConvert()
Dim oMSProject As MSProject.Application
Set oMSProject = CreateObject("MSProject.Application")
oMSProject.Application.DisplayAlerts = False
oMSProject.FileOpen Name:="C:\Documents\Dependancies V34.mpp",
ReadOnly:=True, FormatID:="MSProject.MPP"
oMSProject.FileSaveAs Name:="<C:\Documents\V34_Convert.mdb>",
FormatID:="MSProject.MDB8"
oMSProject.Application.DisplayAlerts = True
oMSProject.Quit
oMSProject = Nothing
End Sub