Method not applicable in this context (Error 444)

You cannot use this method in the current event procedure.