Force Embedded views to open collapsed

Is there a way to make my embedded views open with all twisties collapsed? I have a button so they can be manually collapsed but am hoping to be able to have them collapsed on document open.

Thanks, Paul

Subject: ForceRe: Embedded views to open collapsed

Putting @Command([ViewCollapseAll])

into the PostOpen event seems to work, although I can’t remember if it always works.

Phil

Subject: Problem

Phil, thanks for the apparently excellent solution but unfortunately, I get a “can’t execute command” message… any suggestions?

Thanks, Paul

Subject: one thing to check

I didn’t specify that it’s in the PostOpen event of the view, not the form. Don’t know if that makes a difference.

Phil