Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to alter part of a code given to me for running a macro by a
member but have had no luck seaching the help files or trial & error to get it to work. The code works fine as it is, but I'd like to change the figure "2" (which represents 50%) to cell "M5" which allows user input to adjust the percentage. So from: /2+RC[8] to: /M5+RC[8] Working code below: Sub ResRetr7() Range("M7").FormulaR1C1 = _ "=IF(OR(AND(RC[5]=""H"",(RC[-9]<=((RC[7]-RC[8])/2+RC[8])))),""Yes"",IF(OR(AND(RC[5]=""I"",(RC[-9]=((RC[8]-RC[7])/2+RC[7])))),""Yes"",IF(OR(AND(RC[5]=""H"",(RC[-9]((RC[7]-RC[8])/2+RC[8])))),""Wait"",IF(OR(AND(RC[5]=""I"",(RC[-9]<((RC[8]-RC[7])/2+RC[7])))),""Wait"",""""))))" End Sub Thanks in advance. -- Cheers cliff18 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
help with altering existing code | Excel Programming | |||
altering URLs with code | Excel Programming | |||
Altering code to accomodate empty space | Excel Programming | |||
Help with altering a SaveAs macro . . . | Excel Programming | |||
Help with altering a download macro | Excel Programming |