How do I determine which button was pressed on a vbyesNoCancel message box?
Code: mbResponse=Msgbox("Push Yes, No, or Cancel",vbYesNoCancel,"Response Handling") If mbResponse=vbYes then elseif mbResponse=vbNo then else 'must be vbCancel end if or use the select case method either way
mbResponse=Msgbox("Push Yes, No, or Cancel",vbYesNoCancel,"Response Handling") If mbResponse=vbYes then elseif mbResponse=vbNo then else 'must be vbCancel end if
Utility to Convert Visual Studio.NET 2003 Project Files Edneeis.com
a = msgbox("what",vbyesnocancel,"title") select case a case vbno case vbyes case vbcancel end select
Kurt Simons [I know I'm a hack but my clients don't!]
you beat me!
Forum Rules