Macro to switch BOM options to "Document Name" instead of configuration name

I am looking for a macro to switch the Configuration Properties---->Bill of Materials Options---->Part number displayed when use in a bill of materials: to "Document Name".  This is going to be added to a longer macro.

SolidworksApi macros