S
Shahin Musayev
Hi everyone!
I have one old workbook and it contains following piece of code:
Cells(6, Sel_C + 2) = "=" & VBA.Rnd() & "*" & Cells(5, Sel_C +
2).Address
On my machine it works fine, but when I send this workbook to my
colleague above mentioned line generates 1004 error. So I replaced
previous code with following one:
Cells(6, Sel_C + 2) = "=" & (Application.WorksheetFunction.RandBetween
(0, 10000000) / 10000000) & "*" & Cells(5, Sel_C + 2).Address
And now everything works fine.
Does this all mean that my colleague does not have VBA library at all?
Is it possible? Any thoughts?
Thanks!
Shahin
I have one old workbook and it contains following piece of code:
Cells(6, Sel_C + 2) = "=" & VBA.Rnd() & "*" & Cells(5, Sel_C +
2).Address
On my machine it works fine, but when I send this workbook to my
colleague above mentioned line generates 1004 error. So I replaced
previous code with following one:
Cells(6, Sel_C + 2) = "=" & (Application.WorksheetFunction.RandBetween
(0, 10000000) / 10000000) & "*" & Cells(5, Sel_C + 2).Address
And now everything works fine.
Does this all mean that my colleague does not have VBA library at all?
Is it possible? Any thoughts?
Thanks!
Shahin