radubalmus
Programmer
I am using VBA to calculate some values:
and on the PC i am working i obtain:
energy = 92.32423
but when i am trying to use the macro on an other PC i got:
energy = 92,32423
and when i am trying to show the energy in a cell it is showing me
9232423
There are simple solutions for almost every problem! The hard part is to see them!!!!
Code:
energy = (speed / 3.6) ^ 2 * weight / 1000 / 2
sheet.Cells(20, 2).Value = energy
and on the PC i am working i obtain:
energy = 92.32423
but when i am trying to use the macro on an other PC i got:
energy = 92,32423
and when i am trying to show the energy in a cell it is showing me
9232423
There are simple solutions for almost every problem! The hard part is to see them!!!!