PC Review


Reply
Thread Tools Rate Thread

How can I stop cells recalculating after macro run

 
 
n.kennedy927@btinternet.com
Guest
Posts: n/a
 
      13th Feb 2008
Hi folks

I have a macro which when run removes a couple of excess lines from a
report (produced from elsewhere). The excess lines appear depending on
what time of the day the report runs.

When I run the macro, the links on the second sheet are recalculating,
changing to the formula to an incorrect cell.

I have tried the following to get around this issue, without luck:-
All formulas in the linked sheet have been made absolute references
using the $ for all cell references;
Within the macro, made the calculation method Manual then reverting to
Automatic at the end of the macro.

The basic question after this waffle is this -
Can I get a macro to run, remove the excess lines from my raw report
but leave all of the existing formulas intact so they read from the
coorect cells.

Cheers for any help in advance

Neil
 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      13th Feb 2008
Hi Neil,

If you use the INDIRECT() function to address the cell, the formulas will not change.


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

<(E-Mail Removed)> wrote in message news:817a0a3c-1856-4702-8ed4-(E-Mail Removed)...
| Hi folks
|
| I have a macro which when run removes a couple of excess lines from a
| report (produced from elsewhere). The excess lines appear depending on
| what time of the day the report runs.
|
| When I run the macro, the links on the second sheet are recalculating,
| changing to the formula to an incorrect cell.
|
| I have tried the following to get around this issue, without luck:-
| All formulas in the linked sheet have been made absolute references
| using the $ for all cell references;
| Within the macro, made the calculation method Manual then reverting to
| Automatic at the end of the macro.
|
| The basic question after this waffle is this -
| Can I get a macro to run, remove the excess lines from my raw report
| but leave all of the existing formulas intact so they read from the
| coorect cells.
|
| Cheers for any help in advance
|
| Neil


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you stop a formula from recalculating the second time Shu of AZ Microsoft Excel Misc 1 5th Oct 2008 08:41 PM
Stop specific cell from recalculating? Tony Gravagno Microsoft Excel Worksheet Functions 3 16th Nov 2007 06:21 PM
Stop Recalculating? stupler Microsoft Excel Misc 2 28th Mar 2006 05:37 PM
NOW() but stop recalculating! schroeter Microsoft Excel Misc 1 23rd Nov 2004 12:46 AM
Recalculating Cells error (and more) Ron Microsoft Excel Programming 2 15th Jul 2003 08:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:12 AM.