Solved

A formula in this worksheet contains one or more invalid references

Posted on 2009-05-17
5
1,353 Views
Last Modified: 2012-05-07
I am using excel 2007 and I have several macros, vba code and formulas.  I will save my workbook and have no problems.  Then when I reopen it, it will give me the error message: "a formula in this worksheet contains one or more invalid references".  Then I if I don't change anything and reopen it, half of the time it does not give me this error message.  I have tried to identify the issues in the worksheets by doing what other people have said.  This includes: hitting F5 and checking the formulas, searching for #REF!, and using vba code to identify the errors.  Can anyone tell me how to get rid of this or how to figure out where the error is?  Thanks.
0
Comment
Question by:jeffchmielinski
  • 3
5 Comments
 
LVL 14

Expert Comment

by:BigBadWolf_000
Comment Utility
Have you deleted a chart that is linked to data in your workbook. If yes, was the data on a different sheet from your chart?
0
 
LVL 14

Accepted Solution

by:
BigBadWolf_000 earned 500 total points
Comment Utility
read this...and the solution is ????
http://support.microsoft.com/kb/931389
 
0
 
LVL 14

Expert Comment

by:BigBadWolf_000
Comment Utility
The invalid references are linked somehow to the area of the sheet that contained the deleted chart and you cannot get rid of them even if you delete the entire rows.

What you need to do is this (where the sheet containing the error is named 'MySheet':

1. Backup workbook.
2. Rename the sheet that is causing the problem 'MySheetOld'
3. Create a new sheet 'MySheet' in your workbook.
4. Copy the rows in 'MySheetOld' down to but not including the area that
contained your deleted chart.
5. Paste into exactly the same rows in 'MySheet'.
6. Copy any rows below (but not including) the area in 'MySheetOld'.
7. Paste into exactly the same rows in 'MySheet'.
8. Change any names that point to 'MySheetOld' to point to 'MySheet'
9. On all other sheets in the workbook find and replace 'MySheetOld' in
formulae with 'MySheet'.
10. Save workbook.
11. Delete sheet 'MySheetOld'.
12. Error message should no longer appear.

You may have to play about with this a bit if you are not sure where tha deleted chart was. Usually you can work your way down a sheet, forcing arecalculate (grouping rows is a good and accurate way to do this - just progressively add rows to a group then close and open the group). When you get to the rows that the deleted chart was in the error message will start appearing.

Steps 6 & 7 may be problematic as you may not know where the corrupted
rows end.

Hope this helps
0
 
LVL 10

Expert Comment

by:Jon von der Heyden
Comment Utility
I would especially suggest checking any names / named ranges for the error.  Perhaps data validation and conditional formatting to.  You may have something referncing a range that you deleted (not cleared) and therefore results in this error.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now