Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default pesky invalid external reference error: how to track it down?

I have built an AddIn which charts the data on a particular worksheet.
The formula defining the chart series point to names on that same
worksheet and in which the data for charting are filed.

All is fine until I use my delete_all_charts function and immediately
close down Excel ... when I get the unlovely and untraceable "Your
formula contains an invalid external reference to a worksheet".

I do not know how to identify this errant formula. The error is
triggered after a Workbook_BeforeClose function I have on the AddIn,
and after a log file it generates has been saved, and so I guess it
relates to the closure of the workbook with the charted data.

How can I track down this formula? My delete all charts function first
uses chartobjects.delete and then systematically deletes all the names
that defined the charts (to do it the other way around i.e. the name
first, then the chartobjects, quite logically triggers the above error
msg). As far as I am aware my worksheet at that point does not HAVE any
formula remaining, so I'm somewhat stuck.

I have tried the findLink.xla that some have recommended but as the
error occurs on shutting down Excel I wasn't able to identify the
invalid reference formula.

Any ideas very gratefully received, this is getting me close to wits
end....

Thanks in advance

Matthew

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid reference error saving 2003 file in 2007 Gary C Excel Discussion (Misc queries) 0 December 8th 09 02:58 PM
Invalid Cell Reference error Ravi Excel Worksheet Functions 3 August 19th 08 09:47 PM
Invalid external reference message Laurence Lombard Excel Discussion (Misc queries) 2 November 2nd 07 03:43 PM
Formula Contains an invalid external reference to a worksheet Warren Setting up and Configuration of Excel 1 March 2nd 06 02:46 AM
problem with: hidden (invalid) external reference Peter van de Kerkhof Excel Programming 1 January 25th 04 09:32 AM


All times are GMT +1. The time now is 09:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"