Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Am using the following code to make sure user closes a form correctly Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode A Integer) If CloseMode = vbFormControlMenu Then Cancel = True MsgBox "You must use the form 'close' button", 64, "Erro Message" End If End Sub I have 60 userforms. Rather than apply code in each form, is there way to universally apply this to all forms in the workbook?? Follow up question, is it possible to remove the Microsoft "X" at th top right hand side of the UserForm?? Any help much appreciated Peter (new to VBA...slowly getting there, thanks to all the good advic from this forum! -- peter.thompso ----------------------------------------------------------------------- peter.thompson's Profile: http://www.excelforum.com/member.php...fo&userid=2968 View this thread: http://www.excelforum.com/showthread.php?threadid=49610 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Preventing "undeleting" data in Excel | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
any formula to convert numbers in word form, e.g. "2" as "Two"? | Excel Worksheet Functions | |||
function to return day in the form "Monday", "Tuesday" etc given . | Excel Worksheet Functions | |||
Put "put user form" in spreadsheet | New Users to Excel |