theses are the values for closemode in
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer
Const vbFormControlMenu = 0 ' this is if u close the form by clicking the "X" butto
Const vbFormCode = 1 ' u want to close it from somewhere in the code u have writte
Const vbAppWindows = 2 ' if windows is closing the applicatio
Const vbAppTaskManager = 3 ' u closed the application from teh task manage
Const vbFormMDIForm =
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.