I have been using Application.Caller in a comparison in my code. When a user clicks a commandbutton, I am assuming Application.Caller returns the name of the command button, but am unsure.
I am trying to do something like: msgbox(Application.Caller), but realized its not the right data type. How would I go figuring out what Application.Caller actually is?
As shown in that link,
Application.Callerwill not always be ofStringtypeYou are using
StrCompwhich compares 2 strings. I would recommend using this.And assign this macro to the Form Button which you have on the worksheet.
If you see the example given in the link that I gave earlier, it automatically will be clear to you 🙂