How about this, I've never done it - pop up the standard calculator then after calculating the user can copy and paste the results back into a text box as needed.
This code will startup the calculator for you.
Dim oShell As Object
Dim nRet As Long
Set oShell = CreateObject("WSCript.shell"
nRet = oShell.Run("calc", , false)
Set oShell = Nothing
and search for a calculator project that has been posted by someone else. With the code you can easily add the feature of returning values where you need them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.