I have the codes like
- Code: Select all
worksheet.Range("c6").FormulaR1C1 = R[-3]C - R[-2]C
later I used
- Code: Select all
if worksheet.range("c6").FormulaValue >=0 then
...
end if
If doesn't work. It used to work when I was using the Microsoft Office app. Anything I missed?