Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default Recalculation does not work

I have a worksheet with a UDF that displays the last saved date. There are
other cells which have dependancies on this date. When saving and reopening
the document the date remains unchanged. I have tried F9, Shift + F9, CTRL +
ALT + F9, CTRL + SHIFT + ALT + F9 and also changing the settings in OPTIONS
CALCULATION from automatic to manual back to automatic. Recalculate before
save is checked. When I close the workbook and reopen the date remains the
same. If I retype the formula in another cell then the date displays
correctly. Can anyone help?

Much appreciated!
Joe M.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 477
Default Recalculation does not work

Joe Post the UDF code

"Joe M." wrote:

I have a worksheet with a UDF that displays the last saved date. There are
other cells which have dependancies on this date. When saving and reopening
the document the date remains unchanged. I have tried F9, Shift + F9, CTRL +
ALT + F9, CTRL + SHIFT + ALT + F9 and also changing the settings in OPTIONS
CALCULATION from automatic to manual back to automatic. Recalculate before
save is checked. When I close the workbook and reopen the date remains the
same. If I retype the formula in another cell then the date displays
correctly. Can anyone help?

Much appreciated!
Joe M.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default Recalculation does not work

Jim,
Here's the UDF:

Function lastsaved() As Double
lastsaved = ActiveWorkbook.BuiltinDocumentProperties(12)
End Function

Thanks again
Joe M.



"Jim May" wrote:

Joe Post the UDF code

"Joe M." wrote:

I have a worksheet with a UDF that displays the last saved date. There are
other cells which have dependancies on this date. When saving and reopening
the document the date remains unchanged. I have tried F9, Shift + F9, CTRL +
ALT + F9, CTRL + SHIFT + ALT + F9 and also changing the settings in OPTIONS
CALCULATION from automatic to manual back to automatic. Recalculate before
save is checked. When I close the workbook and reopen the date remains the
same. If I retype the formula in another cell then the date displays
correctly. Can anyone help?

Much appreciated!
Joe M.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 968
Default Recalculation does not work

Sounds like you need to make the UDF volatile.

Charles
_________________________________________
FastExcel 2.3
Name Manager 4.0
http://www.DecisionModels.com

"Joe M." wrote in message
...
I have a worksheet with a UDF that displays the last saved date. There are
other cells which have dependancies on this date. When saving and
reopening
the document the date remains unchanged. I have tried F9, Shift + F9, CTRL
+
ALT + F9, CTRL + SHIFT + ALT + F9 and also changing the settings in
OPTIONS
CALCULATION from automatic to manual back to automatic. Recalculate before
save is checked. When I close the workbook and reopen the date remains the
same. If I retype the formula in another cell then the date displays
correctly. Can anyone help?

Much appreciated!
Joe M.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default Recalculation does not work

I added to the UDF so now it appears as follows but F9 and the same attempts
to recalculate still fail.

Function lastsaved() As Double
Application.Volatile
lastsaved = ActiveWorkbook.BuiltinDocumentProperties(12)
End Function

I must have missed something.

Thanks,
Joe M.

"Charles Williams" wrote:

Sounds like you need to make the UDF volatile.

Charles
_________________________________________
FastExcel 2.3
Name Manager 4.0
http://www.DecisionModels.com

"Joe M." wrote in message
...
I have a worksheet with a UDF that displays the last saved date. There are
other cells which have dependancies on this date. When saving and
reopening
the document the date remains unchanged. I have tried F9, Shift + F9, CTRL
+
ALT + F9, CTRL + SHIFT + ALT + F9 and also changing the settings in
OPTIONS
CALCULATION from automatic to manual back to automatic. Recalculate before
save is checked. When I close the workbook and reopen the date remains the
same. If I retype the formula in another cell then the date displays
correctly. Can anyone help?

Much appreciated!
Joe M.






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 477
Default Recalculation does not work

Enter in a blank cell (somewhere) the function =now()
This is a volatile function that will cause calculation to take place.


"Joe M." wrote:

Jim,
Here's the UDF:

Function lastsaved() As Double
lastsaved = ActiveWorkbook.BuiltinDocumentProperties(12)
End Function

Thanks again
Joe M.



"Jim May" wrote:

Joe Post the UDF code

"Joe M." wrote:

I have a worksheet with a UDF that displays the last saved date. There are
other cells which have dependancies on this date. When saving and reopening
the document the date remains unchanged. I have tried F9, Shift + F9, CTRL +
ALT + F9, CTRL + SHIFT + ALT + F9 and also changing the settings in OPTIONS
CALCULATION from automatic to manual back to automatic. Recalculate before
save is checked. When I close the workbook and reopen the date remains the
same. If I retype the formula in another cell then the date displays
correctly. Can anyone help?

Much appreciated!
Joe M.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default Recalculation does not work

Jim,

I did that but the UDF still did not recalculate.


Thanks,
Joe

"Jim May" wrote:

Enter in a blank cell (somewhere) the function =now()
This is a volatile function that will cause calculation to take place.


"Joe M." wrote:

Jim,
Here's the UDF:

Function lastsaved() As Double
lastsaved = ActiveWorkbook.BuiltinDocumentProperties(12)
End Function

Thanks again
Joe M.



"Jim May" wrote:

Joe Post the UDF code

"Joe M." wrote:

I have a worksheet with a UDF that displays the last saved date. There are
other cells which have dependancies on this date. When saving and reopening
the document the date remains unchanged. I have tried F9, Shift + F9, CTRL +
ALT + F9, CTRL + SHIFT + ALT + F9 and also changing the settings in OPTIONS
CALCULATION from automatic to manual back to automatic. Recalculate before
save is checked. When I close the workbook and reopen the date remains the
same. If I retype the formula in another cell then the date displays
correctly. Can anyone help?

Much appreciated!
Joe M.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Recalculation does not work

On Dec 20, 5:31 am, Joe M. wrote:
I added to the UDF so now it appears as follows but F9 and
the same attempts to recalculate still fail.


Is anything else not recalculating; or just this UDF?

Wild-ass guess: try executing the following macro, substituting the
proper worksheet name or looping for all worksheets:

Sub doit()
Worksheets("Sheet1").EnableCalculation = True
End Sub

If that works, be sure to save the workbook, after deleting the "doit"
macro, if you wish.

Setting EnableCalculation to False is really weird, IMHO. If I save
and reopen a workbook after setting EnableCalculation to False, any
RAND() references cease to calculate, but any newly added RAND()
references retain their volatile nature. It is as if setting
EnableCalculation to False affects the state of only used cells at the
time it is set. And it appears that the cell state is a "property" of
the cell, although I don't know what Property of the cell object might
be affected by it.

Note: To test the effectiveness of setting EnableCalculation to True,
then saving and reopening the workbook, it would be prudent to set
macro security to Very High or at least to Medium (and do not enable
macros). I think Very High would be better, on the off-chance (albeit
unlikely) that a "safe" macro is the cause of setting
EnableCalculation to False.

Again, this is a wild-ass guess with near-zero chance of being
effective, I think. But if nothing else explains your problem, this
might be worth a try.
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 968
Default Recalculation does not work

Works fine for me.
If in Automatic mode it shows the last save time when saved, closed and then
reopened.
If in Manual mode you have to press F9

regards
Charles
_________________________________________
FastExcel 2.3
Name Manager 4.0
http://www.DecisionModels.com

"Joe M." wrote in message
...
I added to the UDF so now it appears as follows but F9 and the same
attempts
to recalculate still fail.

Function lastsaved() As Double
Application.Volatile
lastsaved = ActiveWorkbook.BuiltinDocumentProperties(12)
End Function

I must have missed something.

Thanks,
Joe M.

"Charles Williams" wrote:

Sounds like you need to make the UDF volatile.

Charles
_________________________________________
FastExcel 2.3
Name Manager 4.0
http://www.DecisionModels.com

"Joe M." wrote in message
...
I have a worksheet with a UDF that displays the last saved date. There
are
other cells which have dependancies on this date. When saving and
reopening
the document the date remains unchanged. I have tried F9, Shift + F9,
CTRL
+
ALT + F9, CTRL + SHIFT + ALT + F9 and also changing the settings in
OPTIONS
CALCULATION from automatic to manual back to automatic. Recalculate
before
save is checked. When I close the workbook and reopen the date remains
the
same. If I retype the formula in another cell then the date displays
correctly. Can anyone help?

Much appreciated!
Joe M.






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
Recalculation? Mike D. Excel Discussion (Misc queries) 8 July 13th 07 04:33 AM
Recalculation A Bauer Excel Discussion (Misc queries) 1 March 7th 07 10:01 PM
recalculation shmilo Excel Discussion (Misc queries) 1 February 13th 07 02:40 PM
Recalculation workerboy Excel Worksheet Functions 3 May 15th 06 06:14 PM
Recalculation R Ormerod Excel Discussion (Misc queries) 5 March 19th 06 08:54 AM


All times are GMT +1. The time now is 06:00 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"