Thursday, September 11, 2025

How to call a function in VBA

Public Sub test()

    MsgBox ("dfdfd")

    test1

    End Sub


Public Function test1()

    MsgBox ("dfdfd")

End Function



ref:-  https://learn.microsoft.com/en-us/office/vba/language/concepts/getting-started/calling-sub-and-function-procedures

No comments:

Post a Comment