#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default no X close

Hi All

I found a link on this forum and downloaded the code to
eliminate the x close button on my user forms. It worked
great until someone opened my workbook in 2002. (I have
2000). They still had the x in the title bar of the form.

Any one know how to fix that or where I can find an
update. I forgot where I got the the original.

Thanks
Christy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default no X close

As Robin replies below:

Select Case Int(Val(Application.Version))
Case 8 'Excel 97
hWnd = FindWindow("ThunderXFrame", _
oDialog.Caption)
Case Else 'Excel 2000, 2002, 2003?
hWnd = FindWindow("ThunderDFrame", _
oDialog.Caption)
End Select

--
Regards,
Tom Ogilvy


Christy wrote in message
...
Hi All

I found a link on this forum and downloaded the code to
eliminate the x close button on my user forms. It worked
great until someone opened my workbook in 2002. (I have
2000). They still had the x in the title bar of the form.

Any one know how to fix that or where I can find an
update. I forgot where I got the the original.

Thanks
Christy



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
Why excel close all files when I just want to close one files hon123456 Excel Discussion (Misc queries) 2 December 8th 10 12:12 PM
why do all excel worksheets/workbooks close when I close one? Penny Excel Discussion (Misc queries) 1 November 29th 06 03:49 AM
close button does not close goplayoutside Excel Discussion (Misc queries) 1 October 11th 05 03:42 PM
Excel shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
excel - Windows close button (x) should only close active workboo. CoffeeAdict Setting up and Configuration of Excel 3 February 8th 05 04:30 AM


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

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

About Us

"It's about Microsoft Excel"