Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Preventing linked cells from updating

In order to optimise the run time of a macro i have written i would lik
to stop the excel worksheet from performing any unnecessar
calculations.

My macro is altering the values in many cells in a worksheet. Thes
cells are then the basis for a secondary set of calculations, both o
the same worksheet and another worksheet.

Is there a way of specifying which of cells or links that are dependen
on the cell that the macro is altering should be refreshed every tim
that particular cell is altered?

Thanks



--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Preventing linked cells from updating

Calculation is either on or off (automatic or manual).

It sounds like you want to make it manual

application.Calculation = xlManual

you can then reference any range and force a calculation

range("A1:B20").Calculate

is necessary.
--
Regards,
Tom Ogilvy

"nigelbellamy " wrote in
message ...
In order to optimise the run time of a macro i have written i would like
to stop the excel worksheet from performing any unnecessary
calculations.

My macro is altering the values in many cells in a worksheet. These
cells are then the basis for a secondary set of calculations, both on
the same worksheet and another worksheet.

Is there a way of specifying which of cells or links that are dependent
on the cell that the macro is altering should be refreshed every time
that particular cell is altered?

Thanks

N


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Preventing linked cells from updating

Don't know if this is appropriate but you can set calculation to
manual and use the Calculate Method on a specific Worksheet or Range
(see VB Editor help).

REgards
BrianB
=================================================

nigelbellamy wrote in message ...
In order to optimise the run time of a macro i have written i would like
to stop the excel worksheet from performing any unnecessary
calculations.

My macro is altering the values in many cells in a worksheet. These
cells are then the basis for a secondary set of calculations, both on
the same worksheet and another worksheet.

Is there a way of specifying which of cells or links that are dependent
on the cell that the macro is altering should be refreshed every time
that particular cell is altered?

Thanks

N


---
Message posted from http://www.ExcelForum.com/

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
updating linked cells after inserting a row BPH Excel Discussion (Misc queries) 0 October 26th 06 07:39 AM
updating linked cells after inserting a row BPH Excel Discussion (Misc queries) 0 October 25th 06 07:58 AM
updating linked cells BPH Excel Discussion (Misc queries) 1 October 22nd 06 09:43 AM
cells linked to others in same workbook not updating Peter Excel Discussion (Misc queries) 1 March 19th 06 09:04 PM
updating linked cells pnc1221 Excel Discussion (Misc queries) 2 December 1st 04 03:28 PM


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