Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel User forms 1

Status
Not open for further replies.

memberlogin

Technical User
May 20, 2003
19
GB
is it possible to turn off the close fuction on a user forms as the properties to a user form do not include a choice
 
make the specific field a 'required' value and it will not close without something in that field.

Rollie@bwsys.net
 
this form has been created in Excel and not in Access, what I want to do is deactivate the close button.
is there anyone else out there with any good Ideas?
 
You can use queryclose event: UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) where CloseMode describes how the user tries to close the form (vbFormControlMenu=0 - via x button) and Cancel=True cancels closing.
Another option - API code to hide system buttons and leave empty form's bar (see one of MVP's formfun.xls file mentioned in vba forum or in internet)

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top