View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default Input box question

I'm using the following code to capture the user entered Group ID:

vGp = Trim(InputBox("Enter Group ID or ""All"", "Customer Group"))

The input form has an OK and Cancel Button. The problem is vGP returns ""
if the user presses OK and does not enter anything or if they press the
Cancel button.

Is there a way to determine which button was pushed? The reason is I will
take different actions depending on which button was pushed.

Thanks for the help......

--
JT