2nd attempt at excel VB commands
i think the wording of the last post was too confusing so
let me try again. i hope that i'm not reposting something
that's already been posted, so here it goes. i have 2
sheets: Sheet1 and Sheet2. on Sheet1 i select a group of
cells and save the addresses into a variable:
adrs = Range(Cells(firstcell), Cells(lastcell)).Address
now i want to switch to Sheet2 and use these cells. i want
to choose a cell on Sheet2 and set the value of this cell
equal to the average of the cells that i had selected on
Sheet1. my guess was to use
Cells(a cell).Value = "=AVERAGE(Sheet1! [adrs])"
or something of this sort, but i cant figure out the proper
commands. any ideas? thanks
|