Solved

Access 2007 VBA code for formatting Excel output is not working

Posted on 2013-05-12
5
339 Views
Last Modified: 2013-05-18
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.
0
Comment
Question by:Kebell9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 27

Expert Comment

by:MacroShadow
ID: 39160360
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.
0
 
LVL 30

Expert Comment

by:hnasr
ID: 39160520
Did not experience such issue.
Try to recreate the issue using a test database, and upload.
0
 
LVL 84
ID: 39161556
Also be sure that the target directory for the Excel spreadsheet is Trusted. I've had issues with that in the past ...
0
 

Accepted Solution

by:
Kebell9 earned 0 total points
ID: 39162764
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
0
 

Author Closing Comment

by:Kebell9
ID: 39176916
This was an accidental solution, not one of knowledge. However, the solution will be added to my solution db.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question