如何在PowerPoint VBA中执行平方根?

bri*_*ant 2 math powerpoint vba square-root powerpoint-vba

这是一些将A添加到B的数学代码:

Sub math()
    A = 23
    B = 2
    ABSumTotal = A + B
    strMsg = "The answer is " & "$" & ABSumTotal & "."
    MsgBox strMsg
End Sub
Run Code Online (Sandbox Code Playgroud)

但是如何计算ABSumTotal的平方根?是否可以在PowerPoint VBA中使用?

Cod*_*key 6

使用:Sqr()

strMsg = "The answer is " & "$" & Sqr(ABSumTotal) & "."
Run Code Online (Sandbox Code Playgroud)