As described here, Macro
, Description
and Category
are Variant
parameters.
ArgumentDescriptions
is an Array
, containing descriptions of the UDF function arguments.
So, its value to cancel existing cannot be Emmpty
!
Even if using:
Application.MacroOptions Macro:=Fname, Description:=Empty, Category:=Empty
In order to also unregister ArgumentDescriptions
you should use
Application.MacroOptions Macro:=Fname, Description:=Empty, Category:=Empty, ArgumentDescriptions:=arrDescr
Where arrDescr
was the array used to set ArgumentDescriptions
when you registered it. Something like:
Dim arrDescr
arrDescr = Split("Description for first argument,Description for second argument,Descr for thirt one",",")
Application.MacroOptions Macro:="Fname", Description:="It does things", Category:=9, ArgumentDescriptions:=arrDescr