If cancel is pressed, "" is returned. If text box is left blank and OK is pressed, "" is returned. The problem is that I need to keep the value that was set before if cancel is pressed and if field is blank and OK is pressed, I need to set label to "". I need to determine if OK was pressed or Cancel was pressed. I was using

istr = inputbox (blah)
if istr <> "" then whatever

well it doesn't work in this case because if istr = "" i need to check if "" was returned by pressing OK or Cancel. Thanks.