Possible bug with "UseAlternateNameInBOM"

Dim swApp As Object
Sub main()

Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc

Set swConfMgr = swModel.ConfigurationManager
Set swConfig = swConfMgr.ActiveConfiguration

swConfig.UseAlternateNameInBOM = False
End Sub

I have made this pretty simple code. When it runs, if part has "User Specified Name" selected in "Bill of Materials Options" in configuration properties, it changes that setting to "Document Name". What I have noticed is that it does not work if I have slash ("/") in the user specified name. For example, if user specified name is "3 842 993 120", then it works fine. Instead it I have "3 842 993 120/200mm" in the user specified name, it does not work.

The reason I am putting it here is to see if someone has come across this before and may be there is something I am doing wrong here.

Thanks

SolidworksApi macros