Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Functions not firing!

Hi,
I have a complex sheet with long formulae and functions. This
normally works well but occasionally the cells with formulae or
functions display only #VALUE!

I have Application.Volatile at the start of each function and a full
recalculation does not cure the problem.

Only editing each cell and pressing enter gives the correct value.

I could use a workaround but would appreciate any suggestions of why
this should be happening so I can correct it.
Many thanks,
Rod
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Functions not firing!

It sounds like the sheet is not really recalculated; watch the status bar to ensure "Calculate" does not show. However I have had complex workbooks such as you, and found that "Calculate" can sometimes not be shown, even though recalculation IS needed! I'll give you what I use as a lame workaround; it's absolutely an incomplete solution since I simply can't tell if the workbook is "dirty" thus I don't know if I'm overdue to do it:

It is to hit F2 and hit enter or the tab key. Once the focus arrives at the next cell (e.g., the one to the right), I can tell that the recalc has indeed been complete for that sheet.

Sorry to have nothing better than a clumsy workaround. It's no true solution. :(

On Jan 3, 5:53 am, REM wrote:
Hi,
I have a complex sheet with long formulae and functions. This
normally works well but occasionally the cells with formulae or
functions display only #VALUE!

I have Application.Volatile at the start of each function and a full
recalculation does not cure the problem.

Only editing each cell and pressing enter gives the correct value.

I could use a workaround but would appreciate any suggestions of why
this should be happening so I can correct it.
Many thanks,
Rod


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 829
Default Functions not firing!

"REM" wrote:
I have a complex sheet with long formulae and functions.
This normally works well but occasionally the cells with
formulae or functions display only #VALUE!

I have Application.Volatile at the start of each function
and a full recalculation does not cure the problem.

Only editing each cell and pressing enter gives the correct
value.


When a function returns a #VALUE error, it is usually either because there
is syntax error in the function call, or because there is an error in the
function itself.

The fact that you work around it by recalculating selectively (i.e.
re-editing) suggests to me that either the function has a dependency on
other cells, perhaps implicitly depending on a particular order of
evaluation, or an error in some other cell is aborting the recalculation
cycle.

(Although I think the latter results in a #NAME error, not a #VALUE error.)

Note that we cannot control the order of evalulation. I have found that
even when I try to control the order by judicious use of cell references,
Excel sometimes recalculates formulas out of order. (It actually
recalculates them twice so that the final order dependency is met.)

If you are not using On Error in your function already, I suggest that you
add the following:

On Error GoTo oops
.....your code....
Exit Function
oops:
Stop
End Function

That might help you isolate the problem if it is in your function.

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
Worksheet_SelectionChange Not Firing J.W. Aldridge Excel Programming 5 October 17th 10 10:41 AM
RefEdit Exit not firing Paul Excel Programming 8 January 27th 10 01:46 PM
Event not firing Shell Excel Programming 6 August 27th 08 04:24 PM
How To Keep Worksheet_Change From Firing? PeteCresswell[_2_] Excel Programming 4 July 11th 07 08:54 PM
Macro not firing off Hiran de Silva[_2_] Excel Programming 3 March 12th 06 07:25 PM


All times are GMT +1. The time now is 04:14 PM.

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

About Us

"It's about Microsoft Excel"