Contribute to this content
Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.
Calculates a mathematical expression within a selection. Returns the result as a Single.
Required. A variable that represents a Selection object.
This example calculates the selected mathematical expression and displays the result.
MsgBox "And the answer is... " & Selection.Calculate