The event procedure '|' can't be a Function procedure; it must be a Sub procedure.@If you want to run a Function procedure ...

The event procedure '|' can't be a Function procedure; it must be a Sub procedure.@If you want to run a Function procedure when an event occurs, try one of the following:* Set the event property to the name of a macro containing a RunCode action that runs the Function procedure.* Set the event property to =FunctionName().@@1@@@1