View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Adrian[_4_] Adrian[_4_] is offline
external usenet poster
 
Posts: 7
Default Which button was pressed?

I have a custom dialogue that I need to use in two very
different macros. Hence my OKButton_Click routine is empty
except for Unload UserForm, so that the calling macros can
each do their own thing.

But how can the calling macros tell if it was the OKbutton
or the Cancelbutton that was pressed?