tart a fresh instance of Excel and put =pfeEval("a") in any cell.
The ControlShell instantly pops up with the following message.
Such result is exactly the same as if one would type eval("a") in the addin
shell.
Let us now give a value to the variable "a" in the addin shell. Press
<Ctrl>+<Enter> to switch to the addin shell and give the variable
"a" a value as shown on the picture.
Select the range a1:c3 in the Excel and type =pfeEval("a")
<Ctrl>+<Shift>+<Enter>. There result is shown below.
The Python function eval and in-cell function pfeEval cannot evaluate
assignments. For this reason the function pfeCmd is provided. pfeCmd evaluates
any expression but does not return a value.
|