moke123
AWF VIP
- Local time
- Yesterday, 23:19
- Joined
- Jan 11, 2013
- Messages
- 4,760
A week or so ago I came across some code which allows you to add custom buttons to the native message box. It seems that it may be useful at some point so its one to add to my code repository. The one thing I didn't like about it was the method of calling it. I added a function so it can be called with a simple function call with arguments.
One argument is for the msgbox style (ie.vbQuestion, vbCritical,etc) The purpose of the argument is to only provide the Icon for the constant, not the corresponding button styles (ie. 1,2 or 3 buttons,etc.)
I'm declaring the argument as
which is great, it gives me a dropdown of ALL the constants.
My question is if there is any way to limit the the list of constants in the intellisense dropdown to just those constants that correspond to an Icon. (vbQuestion, vbCritical,vbExclamation,vbInformation)
file attached for refernce.
One argument is for the msgbox style (ie.vbQuestion, vbCritical,etc) The purpose of the argument is to only provide the Icon for the constant, not the corresponding button styles (ie. 1,2 or 3 buttons,etc.)
I'm declaring the argument as
Code:
Optional Icon as VBA.VbMsgBoxStyle
My question is if there is any way to limit the the list of constants in the intellisense dropdown to just those constants that correspond to an Icon. (vbQuestion, vbCritical,vbExclamation,vbInformation)
file attached for refernce.