• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

Access 2007 VBA code for formatting Excel output is not working

I recently had my work computer's hard drive replaced and re imaged. A database, that I backed up, that worked before is no longer working properly. The database would output Excel spreadsheets and then format them. I have not changed the vb code, I have only changed computers.
I have had something similar happen before and the solution was to recreate the db and transfer all (tables, queries, forms, etc) from old to new. This solution has not worked this time around.
I have checked the References of the backed up db verses the new db and see no differences.

Has anyone experienced and resolved something of this sort?
Thanks in advance.
1 Solution
Whats not working? If no code will run, I would check if the database is trusted. See this article.
If you want to do it manually see this.
Did not experience such issue.
Try to recreate the issue using a test database, and upload.
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Also be sure that the target directory for the Excel spreadsheet is Trusted. I've had issues with that in the past ...
Kebell9Author Commented:
All, thanks for the suggestions. I inadvertently resolved the issue by doing a repair to MS Office. I only did this because another office app was having issues. In doing so the issue was resolved.

Thanks Again
Kebell9Author Commented:
This was an accidental solution, not one of knowledge. However, the solution will be added to my solution db.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now