-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Description
Hi Eric,
I was getting an error in this sub when importing UDFS (in Excel 2010), "Method 'MacroOptions' of object '_Application' failed". I tracked it down to a verbose doc string; it looks like desc can only be 255 characters long. I've made the below fix and life is good:
Sub XLPMacroOptions2010(macroName As String, desc, argdescs() As String)
If Len(desc) > 255 Then
desc = Left$(desc, 255)
End If
Application.MacroOptions macroName, Description:=desc, ArgumentDescriptions:=argdescs
End Sub
Thanks for the good work,
Eric
Metadata
Metadata
Assignees
Labels
No labels