using VBA to get away from circular reference
Chris,
When you change one of the first four cells and it then changes the Whole
Year cell, do you then want the first 4 cells to then change to equal WY/4.
Or does WY/4 only happen when the user directly changes WY?
In either case I believe you'll have to use Worksheet Change events. A
helper column that contains the value (not a formula) of the current value
in WY might simplify things.
Doug
"Chris" wrote in message
...
Hi
I want to use VBA to do the following.
4 columns sum to equal the 5 column
entering a number into one of the 4 columns retotals the 5 column
changing the 5th column divides the new number by 4 and puts this value
into the each of the first 4 columns.
put another way:
Q1 + Q2 + Q3 +Q4 = Whole Year when columns 1 through 4 are edited
whole year/4 whole year/4 whole year/4 whole year/4 when column whole
year is edited.
I suspect i'll have to do event capturing of cell clicks, move in, move
out,
up, down
and find where I am in the spreadsheet for the columns relative to the
whole
year column and vice versa
is this feasible or is there another way around this?
thanks
Chris
|