I'm looking on the board for more than half a day and it still doesn't work for me. I use MS Excel 97. I want to disable the x-button (to close the file) when a certain field (D10) has a value in it when the document is opened. When D10 is empty when opening the file and you start putting values in (also in D10) and you want to close the file I want a messagebox to pop up that lets you choose between closing without saving or Cancelling tha action so you stay in the current file.
What do you guys mean by "Put it in a Userform"? How do you do that? Please explain it step by step because I tried some of the codes in Modules, in VBA Workscheet, in "This Workbook" and it just doesn't work. Please can anyone help me out. THANKS!
What do you guys mean by "Put it in a Userform"? How do you do that? Please explain it step by step because I tried some of the codes in Modules, in VBA Workscheet, in "This Workbook" and it just doesn't work. Please can anyone help me out. THANKS!