Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default is preventing the appearence of the close symbol possible?

Hi,
Can I prevent the appearence of the "X" symbol (for closing the window) on a
user form via a macro?. I'll be happy to hear any answers. Thanks in advance
whoever creates a solution.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default is preventing the appearence of the close symbol possible?

Look at the formfun.zip download from Stephen Bullen's site

http://www.bmsltd.ie

go to the excel page.

--
Regards,
Tom Ogilvy

"Marta" wrote in message
...
Hi,
Can I prevent the appearence of the "X" symbol (for closing the window) on

a
user form via a macro?. I'll be happy to hear any answers. Thanks in

advance
whoever creates a solution.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 320
Default is preventing the appearence of the close symbol possible?

Not as far as I know, but you CAN disable its functionality:

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

Bob Umlas
Excel MVP

"Marta" wrote in message
...
Hi,
Can I prevent the appearence of the "X" symbol (for closing the window) on

a
user form via a macro?. I'll be happy to hear any answers. Thanks in

advance
whoever creates a solution.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default is preventing the appearence of the close symbol possible?

Thanks to Tom and Bob,
I'll give both a try...

"Bob Umlas" wrote in message
...
Not as far as I know, but you CAN disable its functionality:

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

Bob Umlas
Excel MVP

"Marta" wrote in message
...
Hi,
Can I prevent the appearence of the "X" symbol (for closing the window)

on
a
user form via a macro?. I'll be happy to hear any answers. Thanks in

advance
whoever creates a solution.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default is preventing the appearence of the close symbol possible?

I usually divert the click to the Cancel button, since obviously the
user wants out.

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = 0 Then cmdCancel_Click
End Sub

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

Bob Umlas wrote:

Not as far as I know, but you CAN disable its functionality:

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

Bob Umlas
Excel MVP

"Marta" wrote in message
...

Hi,
Can I prevent the appearence of the "X" symbol (for closing the window) on


a

user form via a macro?. I'll be happy to hear any answers. Thanks in


advance

whoever creates a solution.






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
Type a symbol useing shortcut keys rather the insert a symbol RJD Excel Discussion (Misc queries) 2 December 23rd 09 06:28 PM
The appearence of a fraction alvaskpa Excel Discussion (Misc queries) 4 July 28th 09 03:31 PM
I wanted Excel's appearence changed to Olive green jjtools New Users to Excel 4 January 11th 08 02:34 AM
Sort by only one appearence Mike Busch Excel Discussion (Misc queries) 1 April 6th 05 03:40 PM
Database Form appearence George Romaine Excel Programming 1 September 13th 03 10:08 PM


All times are GMT +1. The time now is 10:23 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"