I need to store (hence display also) the result of a VBA calculation into an Excel cell.
I cannot go through a Function and I MUST go through a variable.
Let's call it ForDebug, which can be any type but preferably it's As Double.
I tried this syntax, with ForDebug As Double first and As Variant later.
[VBA] MsgBox ForDebug
Range("K4") = ForDebug
Range("K4").Value = ForDebug[/VBA]
Positively, the MsgBox displays valid data (-0.59702...) but nothing happens.
Cell K4 of the Excel sheet remains empty regardless of its format (Number or General).
Also I've only one WorkSheet.
What do you guys suggest?