hmmm... not exactly what I had in mind...
The problem is that I am building the string var containing the named constants, dynamically. There could be hundreds of different combinations of them contained in the string. Once I have the string in the format I want, ie:
"vbOKCancel + vbExclamation + vbSystemModal + vbDefaultButton1" <- Or what ever...
Is there a way to make VB substitute the contents of the variable in the MsgBox function call, instead of trying to process the variable as a string var (which is illegal since that paramter of the function requires a numeric expression?




Reply With Quote