Solved

"A formula in this worksheet contains one or more invalid references" error

Posted on 2012-03-21
8
414 Views
Last Modified: 2012-06-13
I keep getting this error message whenever I run a fairly complicated macro. Among other things, rows get deleted but all of the named ranges remain intact.As far as I can tell I don't have any paths or cell references with errors. But I'm not sure what they mean by a "valid" workbook.

When I google it, everyone suggests that it has something to do with charts but I don't have any charts on the sheet in question.

Any thoughts?

Thanks,
John
0
Comment
Question by:gabrielPennyback
  • 3
  • 3
8 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 350 total points
ID: 37748582
Do you have any charts in the workbook (even if they are not on that sheet)?
0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 37748776
Yes I do. One of the suggestions online was just to delete sheets with charts one at a time until you find the offending sheet, then do it one chart at a time. But I haven't done it because the error message doesn't always come up which would make it difficult to tell if you were getting false negatives.
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 37749135
Do any charts use data from that sheet?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 1

Author Comment

by:gabrielPennyback
ID: 37754192
The charts don't reference data from that sheet directly, but they do reference tables that get their data from that sheet.
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 37785935
I'd probably need to see a copy of the workbook. (No real data required!)
0
 
LVL 13

Assisted Solution

by:Stacy Brown
Stacy Brown earned 150 total points
ID: 37788365
Seeing a copy would be helpful.  I'm betting that there is a problem between the chart and the tables that reference data from that sheet
0
 
LVL 1

Author Closing Comment

by:gabrielPennyback
ID: 38080128
Sorry I've been gone so long. I think I'll have to revisit this question later, but in the meantime thank you for posting at all! :- )<br /><br />- Thanks, John
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 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

16 Experts available now in Live!

Get 1:1 Help Now