Excel vba how to divide? -


i trying divide value taked cells

dim sk integer, p integer  'cells(5, 4) = 9 'cells(5,  14) = 2  sk = cells(5, 4) - cells(5,  14)  ' sk= 7 p = sk / cells(5, "d") ' sk = 7 ' cells(5, "d") = 15 ' p = 0  

but excel give me p = 0 if change divide / multiple * everithing ok

excel want p variant why hapens?

instead of declaring sk integer declare double


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -