0

Do you know what is the limit of chars for the Description argument of the Application.MacroOptions method. There is no official info here: https://learn.microsoft.com/en-us/office/vba/api/excel.application.macrooptions

1 Answer 1

2

You can test this pretty quickly. I got an error once n passed 255.

Function TestMacro()
    MsgBox ActiveWorkbook.Name
End Function
 

Sub AddUDFToCustomCategory()
    Dim n As Long
    For n = 1 To 500
        Application.MacroOptions Macro:="TestMacro", Description:=String(n, "x")
    Next n
End Sub
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the answer! I asked this question as my description in the Macro dialog (opens after clicking Developer->Macros) has reached the limit and I am pretty sure that I did not used 255 characters there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.