Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
DRoam
in reply to: Anonymous

Sorry, you said, "The design view does not have to be active", not, "I don't want to set the design view as active".

 

If you don't want to activate the design view then I'm not sure. Interestingly, there's a "DesignViewInfo" property that returns an XML of the design view's properties, and oddly enough it contains information about which occurrences are set not-visible, but not which occurrences are set transparent. So that's strange.

 

I think activating the view and iterating through occurrences may be the only way. You could try setting ThisApplication.ScreenUpdating to False before iterating through views, to see if that speeds it up any. Just remember to set it back to True after your code ends.

 

Question, how are you getting the visible components without activating the design view? I don't even see a way to do that...