Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default Recalculate 1 cell in a macro

I have calculation set to manual. I'd like to recalculate 1 specific cell,
for example G5 on Sheet "Sales". Can I do something like
Sheets("Sales!G5").Calculate? Thanks for any help on this.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Recalculate 1 cell in a macro

How about:

with worksheets("sales").range("g5")
.formula = .formula
end with



dhstein wrote:

I have calculation set to manual. I'd like to recalculate 1 specific cell,
for example G5 on Sheet "Sales". Can I do something like
Sheets("Sales!G5").Calculate? Thanks for any help on this.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default Recalculate 1 cell in a macro

Dave,

Thanks so much - that worked. There are answers like this that leave me
scratching my head - partly out of "Now why does that work?" but mostly out
of "Now how in the world did he know that ?????" Thanks again.

David


"Dave Peterson" wrote:

How about:

with worksheets("sales").range("g5")
.formula = .formula
end with



dhstein wrote:

I have calculation set to manual. I'd like to recalculate 1 specific cell,
for example G5 on Sheet "Sales". Can I do something like
Sheets("Sales!G5").Calculate? Thanks for any help on this.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Recalculate 1 cell in a macro

I think that this one is like selecting the cell and hitting F2 (to edit it) and
then just hitting enter (with no change).

Excel will think that you changed the formula even if you didn't. So it's
re-evaluation time!

dhstein wrote:

Dave,

Thanks so much - that worked. There are answers like this that leave me
scratching my head - partly out of "Now why does that work?" but mostly out
of "Now how in the world did he know that ?????" Thanks again.

David

"Dave Peterson" wrote:

How about:

with worksheets("sales").range("g5")
.formula = .formula
end with



dhstein wrote:

I have calculation set to manual. I'd like to recalculate 1 specific cell,
for example G5 on Sheet "Sales". Can I do something like
Sheets("Sales!G5").Calculate? Thanks for any help on this.


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default Recalculate 1 cell in a macro

Thanks for the explanation. I kind of knew in the back of my head that Excel
"recalculates" the current cell that you type - but I never gave it much
thought - or thought about how one could apply that property in this
situation. Thanks for a lesson and a clever solution.

"Dave Peterson" wrote:

I think that this one is like selecting the cell and hitting F2 (to edit it) and
then just hitting enter (with no change).

Excel will think that you changed the formula even if you didn't. So it's
re-evaluation time!

dhstein wrote:

Dave,

Thanks so much - that worked. There are answers like this that leave me
scratching my head - partly out of "Now why does that work?" but mostly out
of "Now how in the world did he know that ?????" Thanks again.

David

"Dave Peterson" wrote:

How about:

with worksheets("sales").range("g5")
.formula = .formula
end with



dhstein wrote:

I have calculation set to manual. I'd like to recalculate 1 specific cell,
for example G5 on Sheet "Sales". Can I do something like
Sheets("Sales!G5").Calculate? Thanks for any help on this.

--

Dave Peterson


--

Dave Peterson

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
macro to recalculate every 10 seconds Paul Moles Excel Worksheet Functions 2 August 21st 08 11:16 AM
Formula when copied into a new cell doesn't recalculate spmu Excel Discussion (Misc queries) 1 October 9th 07 03:09 PM
Cell value fails to recalculate PSW2000 Excel Discussion (Misc queries) 2 March 16th 06 02:09 AM
Can you recalculate an individual excel cell in isolation? Dobey Kweeg Excel Worksheet Functions 2 November 21st 05 01:48 PM
Recalculate cell with UDF Numfric Excel Worksheet Functions 3 February 9th 05 04:19 AM


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