Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default forcing complete calculation

Hi all

Excel often doesn't calculate properly when hitting F9. I
was shown the trick that by hitting Ctrl-Alt-F9, one could
force a complete recalculation of all cells in all open
files.

Is there an equivalent to this in VBA?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default forcing complete calculation

Su

Application.CalculateFull


For future occations, try recording a macro in Excel and then view in VBA
what it did. Sometimes a really helpful thing.

Klaus


  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default forcing complete calculation

Thanks Klaus. In Excel97, recording the macro only gives:

Calculate


-----Original Message-----
Su

Application.CalculateFull


For future occations, try recording a macro in Excel and

then view in VBA
what it did. Sometimes a really helpful thing.

Klaus


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default forcing complete calculation

CalculateFull is available in Excel 2000 and later. In Excel 97, you need
to use sendkeys to sent Ctrl+Alt+F9

Regards,
Tom Ogilvy

"Klaus" wrote in message
...
Su

Application.CalculateFull


For future occations, try recording a macro in Excel and then view in VBA
what it did. Sometimes a really helpful thing.

Klaus




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default forcing complete calculation

This doesn't seem to work in Excel97...

-----Original Message-----
Su

Application.CalculateFull


For future occations, try recording a macro in Excel and

then view in VBA
what it did. Sometimes a really helpful thing.

Klaus


.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default forcing complete calculation

CalculateFull is not available in Excel 97. You have to use sendkeys to do
Ctrl+Alt+F9

Previously posted by Charles Williams:

if val(application.version)<9 then

Application.SendKeys "%^{F9}"
DoEvents

else
application.calculatefull
endif

--
Regards,
Tom Ogilvy


wrote in message
...
Thanks Klaus. In Excel97, recording the macro only gives:

Calculate


-----Original Message-----
Su

Application.CalculateFull


For future occations, try recording a macro in Excel and

then view in VBA
what it did. Sometimes a really helpful thing.

Klaus


.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default forcing complete calculation

That is correct. See my response.

--
Regards,
Tom Ogilvy

"Claude" wrote in message
...
This doesn't seem to work in Excel97...

-----Original Message-----
Su

Application.CalculateFull


For future occations, try recording a macro in Excel and

then view in VBA
what it did. Sometimes a really helpful thing.

Klaus


.



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
advise calculation is complete Ross in Oz[_2_] Excel Discussion (Misc queries) 5 July 14th 09 06:39 AM
Message telling calculation is complete deeds Excel Discussion (Misc queries) 16 May 5th 08 03:28 PM
Forcing SaveAs to new name Rob Excel Discussion (Misc queries) 2 December 3rd 06 05:14 AM
forcing UDF to run Stefi Excel Worksheet Functions 4 December 29th 05 03:46 PM
Forcing users to complete a form BK Excel Discussion (Misc queries) 3 November 22nd 05 12:35 AM


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