Export (0) Print
Expand All
Expand Minimize

Selection.Calculate Method (Word)

Calculates a mathematical expression within a selection. Returns the result as a Single.

expression .Calculate

expression 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
Show:
© 2014 Microsoft