Close all instances of "edit in place" (not toggle)

Hi -

I’m on Cubase Pro 8.5.10

I have a PLE housekeeping macro that zooms to 1 row, clean up lanes, close lanes, hide automation lanes etc. … the kind of thing I do when my template seems to be getting hard to navigate easily.

As part of this macro I’d like to close all instances of edit in place (the piano roll in the project window) that are open. I can do this on a toggle basis with Edit - Edit in place but rather than having to step through each instance one by one closing the edit-in-place I’d like to select all tracks and close all instances of edit in place.

Is there any way I can do this?