Hi,
I'm looking for some vba that will do the following if possible:
Example: cell R1 contains the following: '1>5' and when the macro is run it puts a 'formula' into the range from R3: down to the last row containing data in Col A (eg.R3:R7540). The formula calculates a 'Randbetween 1 and 5' for every cell in the range and then converts them to values so no formulas are left. The example here shows R1 and then R3 down for the range, however I need the vba to look at whatever cell is selected and then offest 2 rows down as the starting point fo the range, so if cell AB1 was selected before I push the macro button then it would take the contents in AB1 (eg.'3>8') and set a randbetween 3 and 8 for every cell from AB3: down to the last row containing data in Col A.
Hope this makes sense?
Any help much apprecatied.
I'm looking for some vba that will do the following if possible:
Example: cell R1 contains the following: '1>5' and when the macro is run it puts a 'formula' into the range from R3: down to the last row containing data in Col A (eg.R3:R7540). The formula calculates a 'Randbetween 1 and 5' for every cell in the range and then converts them to values so no formulas are left. The example here shows R1 and then R3 down for the range, however I need the vba to look at whatever cell is selected and then offest 2 rows down as the starting point fo the range, so if cell AB1 was selected before I push the macro button then it would take the contents in AB1 (eg.'3>8') and set a randbetween 3 and 8 for every cell from AB3: down to the last row containing data in Col A.
Hope this makes sense?
Any help much apprecatied.