Macro recorder would have helped point you in the right direction

    Thisworkbook.Names("RValue").RefersToR1C1 = "=" & MyValue