LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Formulas mysteriously break

I have a workbook with many worksheets in it. It also has a "Summary"
worksheet that has a lot of formulas referring to these other
worksheets. For instance, one of the formulas on the Summary worksheet
is...

=NPM!$P$4+NPM!$Q$1

NPM is the name of another worksheet in the same workbook. When the
workbook is saved these sheets do not exist. They are created by a
large VBA sub that runs every night. When the sub is complete, all of
the sheets exist and the formulas all work fine.

Periodically Excel "updates" all of these formulas automatically --
not the numbers in them, the actual formula itself. If this happens
before the worksheet in question has been created, it replaces all of
the "NPM!"s with "[NPM]NPM!"s, believing the reference is to an
external workbook. I have no idea why it would believe this to be the
case, but this breaks all of the formulas which have to be hand-edited
to make them work again.

Hand editing them is a chore. If you simply remove the "[NPM]" it
opens the "update links" dialog, and if you press cancel it reverts
the formula and puts the "[NPM]" back in again.

I have found that I can fix this temporarily by first creating a blank
NPM worksheet and then fixing the formulas. Now it works for a short
period of time, but as soon as I remove the blank worksheet, all of
the formulas are updated to replace the correct "NPM!whatever" with
"#REF!whatever", thereby breaking them "even more".

I have been trying to fix this problem and return the spreadsheet to a
working state again, but every edit I make either makes the problem
worse, or breaks some other set of formulas.

This is EXTREMELY FRUSTRATING!

Does anyone know what is causing this to happen, and how to fix it?

Maury
 
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
Row mysteriously getting deleted PeteJ Excel Discussion (Misc queries) 0 June 19th 08 05:58 PM
Break Links But Keep Formulas Tim879 Excel Discussion (Misc queries) 1 June 17th 08 04:05 AM
Date changes mysteriously JMH Excel Worksheet Functions 2 January 23rd 08 06:59 AM
Column mysteriously shifts up/down Robin Excel Discussion (Misc queries) 1 October 3rd 07 08:04 PM
userform mysteriously unloads Scott Excel Programming 0 September 1st 03 02:24 AM


All times are GMT +1. The time now is 05:27 AM.

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"