Results 1 to 3 of 3
  1. #1
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Converting from Project to an Access Database (Project 2000)

    In access, I am launching an MS Project Project via a browse feature and then want to convert the open MS Project Project to an Access Database. The code I am using is shown below. I am having a problem with the prjapp.FileSaveAs Name, , , , , , , , , MSProject.mdb8

    What is the correct code to do this?

    Dim prjapp As MSProject.Application
    Dim prjProject As MSProject.Project

    Name = "C:MSP"
    N = Forms!frmExplorer!lbxFiles.Value
    P = stPath & "" & N

    Set prjapp = CreateObject("Msproject.Application")
    prjapp.Fileopen P
    prjapp.Visible = True
    prjapp.FileSaveAs Name, , , , , , , , , MSProject.mdb8
    prjapp.FileCloseAll
    prjapp.FileExit
    Regards,

    Gary
    (It's been a while!)

  2. #2
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Converting from Project to an Access Database (Project 2000)

    The following works:

    prjapp.FileSaveAs Name:="<C:zzztest.mdb>zzztest", FormatID:="MSProject.MDB8"
    Regards,

    Gary
    (It's been a while!)

  3. #3
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: Converting from Project to an Access Database (Project 2000)

    Thanks for the followup on what worked - I am new to Project VBA, but was watching the thread with interest.

    Cheers
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •