Mass Properties

I have a simple macro that overrides the Mass Properties of a part. I use it to assign a weight to a purchased part. (Example: A Bearing)

The macro will open the Mass Properties window. It goes to the Override Mass Properties page, prompt you for the new mass of the part. Then closes

that page. Here's my problem. The Mass Properties window stays open. Any ideas??

Thanks in advanced for anyone's help.

SolidworksApi macros