+ Reply to Thread
Results 1 to 19 of 19

Access 2010- VBA code states "Project is not available"

  1. #1
    Registered User
    Join Date
    10-01-2013
    Location
    Minnapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    13

    Access 2010- VBA code states "Project is not available"

    I have recently upgraded from Excel/Access 2003 to 2010. I am working on moving a macro database from a co-workers computer to my computer since her last day is coming up. She is still on Access 2003 and the macro was created on 2003. When I open the macro in 2010 and try to run one of the modules it does not work and gives me this error:

    MacroError.png

    "The format in which you ar eattempting to output the current pbject is not available"

    The function is supposed to export a list to excel. My immediate reaction is to look at the code to see where it is reffering to; however, when I try to access the VBA editor an error pops up that says "Project is not available."

    I tried unsharing the database, no progress.
    Then I tried adding/removing a digital certificate, both no luck.
    I also tried decompiling the database and that didn’t work either.


    I know this is an excel forum, but I am at a loss so I figured it was worth a shot.

    Thanks for anyone who attempts to help!

    Cross posted at: http://www.accessforums.net/programm...ect-38450.html
    Last edited by joriekline; 10-09-2013 at 04:58 PM.

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Access 2010- VBA code states "Project is not available"

    What steps have you actually taken to transfer the project?

    Also you should have posted this in the Access section


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Registered User
    Join Date
    10-01-2013
    Location
    Minnapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Access 2010- VBA code states "Project is not available"

    Is the access section a separate forum? I'm not seeing it on here

    I checked the original and her database does not allow her to access the VBA code either. Its the same error. To transfer the database we saved a copy to the shared drive and then I saved a copy to my computer.

    There doesn't seem to be a password protecting the spreadsheet, but I'm not positive.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Access 2010- VBA code states "Project is not available"

    I don't work with Macros in Access. I do everything in VBA. Macros in Access unlike Excel are not VBA driven.

    I would urge you to convert the Macros to VBA. There is a built in wizard in Access that will allow you to do this.
    1. Make a backup copy of your database and store it in a safe location in case you have to restore the existing one.
    2. Make sure that you have activated the Developer Tab on the Ribbon in Access.
    3. Open the form in which the macro is run from in design view. On the developer tab, there is an icon to convert the macros to VBA. Run it.
    4. See if this resolves your issue.
    5. If not, then we can analyze your VBA for this particular issue and see what is the cause.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Access 2010- VBA code states "Project is not available"

    I googled the error message as I had not seen anything like this before and there many possible scenarios that is causing this. Have you check your reference library to see if you are missing any entries?

  6. #6
    Registered User
    Join Date
    10-01-2013
    Location
    Minnapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Access 2010- VBA code states "Project is not available"

    Are you referring to the "Project not available" error or the picture I posted?

    Due to the "Project not available" error I cannot see any of the developer information. The same "Project not available" error pops up. I checked on the source database and I cannot access the VBA code there either.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Access 2010- VBA code states "Project is not available"

    In post 5, I am referring to the error message "The format in which you are attempting to output the current project is not available." I will research the other error code. I confused both messages. I am clear now.

    For the Project Not Available is there an error message number and is that the exact wording of the error message?

  8. #8
    Registered User
    Join Date
    10-01-2013
    Location
    Minnapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Access 2010- VBA code states "Project is not available"

    No problem, thanks for all the help. I will surely use post 5 once I can view the VBA.

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Access 2010- VBA code states "Project is not available"

    First steps to try and resolve this VBE not opening.

    Run a compact and repair. Try to open the VBE after this completes.

    If the C&R doesn't work, then open a new blank database.

    In Access 2010, go to External Data, Access. Import. Select all the tables, queries, forms, reports, etc. Be sure to indicate that you want data as well as the setup.

    Save it with a new name and try to open it.

    It is possible that your existing database is corrupt. Each of these steps are what I would try initially. Post back with your results.

    HTH
    Alan

  10. #10
    Registered User
    Join Date
    10-01-2013
    Location
    Minnapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Access 2010- VBA code states "Project is not available"

    Thanks for the help! I really appreciate you taking the time.

    The compact and repair didn't work.

    When I followed your next steps I can import the tables and queries; however, the forms, reports, macros, and modules tabs are all greyed out and I cannot import or select them.

  11. #11
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Access 2010- VBA code states "Project is not available"

    This sounds like it may be protection issue. Was this db built in-house? or by an external developer? Is the person who built it available for consultation?

    Also, are you able to provide me with information regarding my post #7. Error message number and exact wording?

    Another thought. I have never used it, but can you check to see if there is user level security on the original .mdb file. It would be under the Tools tab in the original file and then Security.
    Last edited by alansidman; 10-09-2013 at 04:47 PM.

  12. #12
    Registered User
    Join Date
    10-01-2013
    Location
    Minnapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Access 2010- VBA code states "Project is not available"

    Sorry I had posted it wrong the exact wording is: "Project is unviewable."

    It was build in-house by a past analyst. I am not aware if they are still within our company or not.

  13. #13
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Access 2010- VBA code states "Project is not available"

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    Cross Posted at: http://www.accessforums.net/programm...ect-38450.html

  14. #14
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Access 2010- VBA code states "Project is not available"

    Look at this link http://support.microsoft.com/kb/823225

    This is what MS has to say about the error message.

  15. #15
    Registered User
    Join Date
    10-01-2013
    Location
    Minnapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Access 2010- VBA code states "Project is not available"

    I tried those steps, and it didn't resolve the issue either. I'm thinking we will have to try to keep her computer active just for this database until it can be recreated.

    Thanks again for all your help.

  16. #16
    Registered User
    Join Date
    10-01-2013
    Location
    Minnapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Access 2010- VBA code states "Project is not available"

    REPOSTED FROM ACCESS FORUM:

    I just noticed when I tried to open the User Level Security Wizard that I received an error message stating that "You can't run the Security WIzard with and MDE database"

    How is it running as an MDE, but saved as a MDB?

  17. #17
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Access 2010- VBA code states "Project is not available"

    You are welcome. A good bit of news is that you can salvage the tables and queries. If necessary you can rebuild the forms and reports. That part is not the heavy lifting. Tables and queries tend to be the heart of the database.

  18. #18
    Registered User
    Join Date
    10-01-2013
    Location
    Minnapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Access 2010- VBA code states "Project is not available"

    Thanks, that does make me feel a little more at ease!

  19. #19
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Access 2010- VBA code states "Project is not available"

    Hmmmm. You need to have the original mdb to make the changes. With time, that may have gone away. This may be helpful, but I doubt it.

    http://office.microsoft.com/en-us/ac...005239302.aspx

    I'm guessing someone saved it as an MDE and then changed the file name to mdb. It is still an MDE. Only guessing at this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  2. Is it a BAD idea to enable "Trust access to the VBA project object model"
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-23-2015, 12:26 PM
  3. Replies: 6
    Last Post: 07-30-2013, 11:48 AM
  4. [SOLVED] how code do i need to write before "RANGE("A1").value to access a specific worksheet?
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2013, 03:46 AM
  5. VBA Code for deleting rows where cell in column a states "delete row"
    By tnfire in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2009, 06:17 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1