I have a formula in a cell to report a number to 2 significant figures. It works OK, but for one reason and another I need to use this formula in VB.
This is the formula I have in a cell (lets say it's in B2)
I'm trying to have the calculation performed in VB but I don't fully understand the formula (I pinched it from elsewhere on the web and adapted it) and whilst I understand that the functions work differently in Excel and VBA.![]()
Please Login or Register to view this content.
For what it's worth, here's my attempt at VBing it, so to speak (should give someone a laugh or a WTF moment!) but I'm obviously not understanding how these particular functions work in VB.
Any help much appreciated!![]()
Please Login or Register to view this content.
Bookmarks