when using this in vba
this changes cell "c3" to the value of the activecell. This is one instance in time. SO if activecell = 300 then c3=300 until you run the code again it stays at 300.
can you explain what you are trying to do? Do you want a formula in "C3"
You need to add the code to the wqorksheet CHANGE event
Search the forum for many many posts in this area
Rgds, Geoff
We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.
I have a 250 sheet database and want a summary of each in the C-row and D-row (totals)of every sheet. When I make a change in my sheet, I would like to be abled to instantly see this in the C,D-rows.
The first tip works but doesn't change along. Not a huge problem, but with future changes, it might be confenient for it to do so.
H50 --> C11, I50 --> D11 AL48 --> C12, AM48 --> D12
H51 --> C18, I51 --> D18 Al49 --> C19, AM49 --> D19
H52 --> C26, I51 --> D26 and so on, and so on
and so on..
However, on the next sheet the info of (H50 - I55, AL48 - AM54, AR48 - AS54 and so on..) might be in H65 - I70 etc, but still has to appear in de same C, D-rows.
As it is doing right now. but preferably adaptive..
Like I said before you can do this however your code needs to run each time
If you have 7 codes that work for all the spreadsheets you may want to look at changing your code to
Range("c3").Formula = "=$H$11"
and then run the code on each sheet. So you only have to update 7 codes and then run them. This way it will update and you will not have to keep running a macro on each change.
this works fine for the sheet I'm currently working with. However, the next sheet has the needed figures in for example H58 (C4) and the next sheet H31 (C4)... So I can't create a fixed H value right?
I coppied this macro since I need to use information from a different table for C5,12,19,etc and D5,12,19,etc where this one is used for C4,11,18,etc and D4,11,18,etc.
the tables are different, variating from 1 to 7 per sheet.
they all have different sizes and therefore I can't use $H$..
Is there a way for putting the file online for free? I find it very hard to explain.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.