Did you drag and drop the exact code I wrote? Or did you edit it with your code?
I suggest copy it as I have first, test that if it works, if it crashes let me know.
Also which 3dsmax version are you using?
FYI if you are going to put your code then you need to evaluate the script, drag and drop wont work, it only works for code without the header, so for example:
macroScript ResetAndCollapse
category:"AAScripts"
toolTip:"ResetAndCollapse"
(
for obj in selection do
(
ResetXForm obj
ConvertToPoly obj
)
)
Once this is in your Editor you press CTRL+E (not drag and drop).
You can then go to Customize > Customize User Interface > Toolbars