
Originally Posted by
mikebeas
I am creating a sheet to calculate returns on a trade system with various rates of commission. All works ok apart from when the commission value is changed the whole sheet recalculates at the new commission rate. I need the already calculated lines to remain as they were.
Why don't you want the "whole" worksheet to recalculate? Is there any part of the worksheet that you expect to recalculate automatically?
If not, perhaps the following paradigm is the feature you are looking for.
Right-click on the worksheet tab, click on View Code, and copy the following text and paste into the editing pane of the VBA window.
Save the file as "xls" or "xlsm".
To use in Excel, press alt-F8, select the macro that you want to execute, then click on Run.
If you want the worksheet calculation to be disabled when you open the file later, also paste the following macro into the ThisWorkBook object in VBA:
Change "Sheet1" to the appropriate worksheet object name (not the worksheet name).
Bookmarks