custom property and property manager page

Hi,

I'm writing some VBA to manipulate custom properties, and I've run into a problem.  Using SW 2010 sp 5 on Win7 x64.

Problem is that I am also using a custom property page for this document, and you cannot delete a custom property if it is in use by a loaded propertymanager page.  Doesn't matter if it is visible or not, what matters is if it is LOADED or not.

So I can work around by unloading the PMP, I have proven it out by unloading it via the UI.

Ideally I would unload it via API, but after a couple hours of digging & experimenting, I cannot find a way to do this.

Any help would be appreciated. thanks!

SolidworksApi macros