What I'm looking to do is have a main excel page with ten macro buttons each importing and plotting different graphs.
For one of the options I would like the user to enter the a value (channel No.) into a cell for which they want a statistical plot.
This statistical data will have already been imported using a macro, however it will contain a number of different channels of information.
So what im wanting to do is, let say the user enters channel 2 into cell L2 then i would plot a graph of A52:B71
the formula for calculating the A cell no is: 4 + 24 * ChNo.
and for calculating B: A + 19
e.g.
ChNo. 0 => A4:A23
ChNo. 3 => A76:B95 etc.
So my question is, is it possible to vary the range depending on a cell value?
i was trying to assign a variable to the cell value then calc the topleft and bottom left cell numbers using the formula, but i cant seem to get it to work.
Thanks
Chris
For one of the options I would like the user to enter the a value (channel No.) into a cell for which they want a statistical plot.
This statistical data will have already been imported using a macro, however it will contain a number of different channels of information.
So what im wanting to do is, let say the user enters channel 2 into cell L2 then i would plot a graph of A52:B71
the formula for calculating the A cell no is: 4 + 24 * ChNo.
and for calculating B: A + 19
e.g.
ChNo. 0 => A4:A23
ChNo. 3 => A76:B95 etc.
So my question is, is it possible to vary the range depending on a cell value?
i was trying to assign a variable to the cell value then calc the topleft and bottom left cell numbers using the formula, but i cant seem to get it to work.
Thanks
Chris