Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Close Buttom

Hi
In a userform there are a Red Cross to close the form
Can i disable this ?

Regards
alvin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Close Buttom

I use the userform queryclose to disable 'Red Cross'

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
End If
End Sub

--
-----------------------------



"alvin Kuiper" wrote:

Hi
In a userform there are a Red Cross to close the form
Can i disable this ?

Regards
alvin

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Close Buttom

Thanks
Alvin


"GerardV" skrev:

I use the userform queryclose to disable 'Red Cross'

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
End If
End Sub

--
-----------------------------



"alvin Kuiper" wrote:

Hi
In a userform there are a Red Cross to close the form
Can i disable this ?

Regards
alvin

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Macros 1 Buttom Sudipta Sen[_2_] Excel Worksheet Functions 2 December 14th 09 01:38 PM
How do I add command buttom? rgarber50 Excel Discussion (Misc queries) 1 July 11th 05 03:39 AM
Attaching a buttom with an event on VBA Bob Phillips[_6_] Excel Programming 0 April 28th 04 05:10 PM
Attaching a buttom with an event on VBA Charles Excel Programming 0 April 28th 04 05:08 PM
Attaching a buttom with an event on VBA chris Excel Programming 0 April 28th 04 05:01 PM


All times are GMT +1. The time now is 07:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"