Have to wrap it in an Execute:

$= Execute($Form.DoEvents(1))