Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need an auto update formula macro


Here's the sheet.

cell A40=SUM(E41:*E54*)
cell C43=SUM(*E55*:E80)
cell I45=current #
cell I47=prior #

I want to be able to run a macro that will do in this ORDER the
following logical steps:

If I47 = I45
then updated A40's formula to "=sum(E41:*E55*)"
then update C43's formula to "=sum(*E56*:E80)
Else copy I45's # and paste into I47
then updated A40's formula to "=sum(E41:*E55*)"
then update C43's formula to "=sum(*E56*:E80)

Basically its just moving the cell ranges forward one for me as shown
by the bolding. Anybody know how I can do this?


--
foxspirit
------------------------------------------------------------------------
foxspirit's Profile: http://www.excelforum.com/member.php...o&userid=31264
View this thread: http://www.excelforum.com/showthread...hreadid=512253

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need an auto update formula macro


Is it possible to refer to the cells by cell name (lets say I name A40
Bob) when doing this so it doesn't matter if I move cell A40 to D5,
because the macro will search for its name "Bob" instead?


--
foxspirit
------------------------------------------------------------------------
foxspirit's Profile: http://www.excelforum.com/member.php...o&userid=31264
View this thread: http://www.excelforum.com/showthread...hreadid=512253

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need an auto update formula macro


How about this...could somebody just tell me how to write code that
refers to a named cell. I want my code to know use Bob like you would
use a static cell reference. How do you declare that? Am I making no
sense? I apologize because I'm just starting out and learning as I go.


--
foxspirit
------------------------------------------------------------------------
foxspirit's Profile: http://www.excelforum.com/member.php...o&userid=31264
View this thread: http://www.excelforum.com/showthread...hreadid=512253

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
Auto-update column formula Alex Excel Discussion (Misc queries) 1 February 17th 10 04:51 PM
Macro Auto-update of data labels [email protected] Excel Worksheet Functions 0 August 7th 07 04:17 PM
Excel Macro - Auto Update Links joopdog Excel Programming 2 February 8th 06 07:58 PM
Can I disable auto formula update? jch New Users to Excel 4 August 9th 05 06:31 PM
Auto refresh and DDE update is not work when running macro Eddy[_5_] Excel Programming 0 July 13th 04 10:08 AM


All times are GMT +1. The time now is 09:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"