#1   Report Post  
Posted to microsoft.public.excel.misc
stupler
 
Posts: n/a
Default Stop Recalculating?


I'm hoping that someone could help me with a problem I have with an
Excel game I'm making.
'This is the spreadsheet I am having problems with'
(http://uk.geocities.com/ueverwondered/DONDExcelHelp.xls). I'm hoping
this will help me in explaining my problem, since I'm pretty new to the
macro side of things.

It doesn't matter too much if you choose to run macros or not. The
problem lays with the cell to the right of the "Dealt at:" text. It
works by getting the number in the cell next to the "Offer:" text. If
the player types "deal" into the cell above the "Dealt At:" cells, the
cell to the right of the "Dealt At:" text will display whats in that
cell.
But if the player plays on, that number to the right of the "Dealt At:"
text will change too, which I'd like to remain at the first number it is
(when the player typed "deal").

Is it a matter of stopping it recalculating or something else?

(The game is'nt finished, by the way! :) )


--
stupler
------------------------------------------------------------------------
stupler's Profile: http://www.excelforum.com/member.php...o&userid=32884
View this thread: http://www.excelforum.com/showthread...hreadid=526882

  #2   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default Stop Recalculating?

stupler,

I looked into your file, I cannot understand what it does, but since
you are using VBA, you might find the following helpful:

Application.Calculation = xlCalculationManual
....
Application.Calculation = xlCalculationAutomatic

These two lines can be inserted above and below some code to
temporarily suspend automatic recalculation. They could also be used in
an event macro for the sheet, i.e. a macro that is invoked when an
event fires that Excel traps. In your case this would be the

Private Sub Worksheet_Change(ByVal Target As Range)

This is a predefined macro, empty until you fill it. To get there,
double click the corresponding sheet icon in the Project Manager (in
VBA IDE). Once the window is open, at the top there are two drop-down
boxes. The left displays General. Switch to Worksheet. Then, at the
right, you can see the available events for the worksheet.

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.misc
Sandy Mann
 
Posts: n/a
Default Stop Recalculating?

Stupler,

Without looking at your sheet would it not be possible to have a Macro
replace the formula in that cell with a constant?

--
HTH

Sandy

with @tiscali.co.uk


"stupler" wrote in
message ...

I'm hoping that someone could help me with a problem I have with an
Excel game I'm making.
'This is the spreadsheet I am having problems with'
(
http://uk.geocities.com/ueverwondered/DONDExcelHelp.xls). I'm hoping
this will help me in explaining my problem, since I'm pretty new to the
macro side of things.

It doesn't matter too much if you choose to run macros or not. The
problem lays with the cell to the right of the "Dealt at:" text. It
works by getting the number in the cell next to the "Offer:" text. If
the player types "deal" into the cell above the "Dealt At:" cells, the
cell to the right of the "Dealt At:" text will display whats in that
cell.
But if the player plays on, that number to the right of the "Dealt At:"
text will change too, which I'd like to remain at the first number it is
(when the player typed "deal").

Is it a matter of stopping it recalculating or something else?

(The game is'nt finished, by the way! :) )


--
stupler
------------------------------------------------------------------------
stupler's Profile:
http://www.excelforum.com/member.php...o&userid=32884
View this thread: http://www.excelforum.com/showthread...hreadid=526882



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
Stop autoformatted dates without using "format TEXT" or ' DavidB Excel Discussion (Misc queries) 2 January 30th 06 02:04 PM
How do I stop a general format from being autoformatted to date cpp01rem New Users to Excel 2 November 21st 05 12:29 PM
Stop scrolling gottahavit Excel Discussion (Misc queries) 1 November 8th 05 03:30 PM
what is the keys to stop recording, i cant press it when making a. Lante Excel Discussion (Misc queries) 1 January 3rd 05 09:15 PM
How do I stop other circles in other boxes to stop selecting? stauff Excel Worksheet Functions 1 October 28th 04 10:27 PM


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