Square root function in VBA, Excel

excel, vba

Solution

Use the oddly named

`VBA.Sqr(n)`

where `n` is your number for which you want the square root computed. The `VBA.` prefix is optional, but it helps descriminate between `VBA` and any other library you might have referenced.

Problem

What is the square root function in VBA excel? I tried SQRT() and Root() but none of them are working, my Excel version in 2013.

Original source