Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default how to prevent a worksheet from being recalculated?

I have a complex nonlinear regression worksheet/workbook in which the results
are written by a button-activated macro into another (summary) worksheet. It
takes a while for the worksheet to be calculated and the results written, but
it's even worse than the worksheet recalculation happens again after the
summary data have been written... Is there a VBA procedure that would
prevent the recalculation from happening unless a value in a given cell is
chaned?

z.entropic
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default how to prevent a worksheet from being recalculated?

There isn't anything built into Excel to that. If you are talking about
having a cell value changed either manually or via VBA code (as opposed to
the change as a result of calculated formula), you could set the calculation
to manual and then use a Worksheet_Change event to do a calculation when the
cell is changed.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
Application.Calculate
End If
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"z.entropic" wrote in message
...
I have a complex nonlinear regression worksheet/workbook in which the
results
are written by a button-activated macro into another (summary) worksheet.
It
takes a while for the worksheet to be calculated and the results written,
but
it's even worse than the worksheet recalculation happens again after the
summary data have been written... Is there a VBA procedure that would
prevent the recalculation from happening unless a value in a given cell is
chaned?

z.entropic


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
Prevent copy of formulas on a worksheet KAG Excel Discussion (Misc queries) 2 March 30th 07 03:46 AM
Excel Charts do not update when workbook recalculated duane Excel Discussion (Misc queries) 1 December 29th 05 02:11 PM
Excel Charts do not update when Workbook recalculated duane Charts and Charting in Excel 0 December 27th 05 10:55 PM
Prevent Worksheet Deletions Karen Excel Worksheet Functions 1 September 12th 05 09:48 PM
prevent saving a worksheet looking4help Excel Discussion (Misc queries) 2 March 17th 05 10:14 PM


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