Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Warning the user about closing Windows:1.

If you view 2 windows of the same workbook, and you close Windows:1,
all original formatting is lost.
Not so if you close Windows:2.

Is there a way to warn users that they will lose formatting if they
close Windows:1?

Thanks,

Walden

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Warning the user about closing Windows:1.

There's no Window_BeforeClose event, so you cannot tell when this happens.
There's only the Activate/Deactivate, which is too late, as there's no
Cancel argument.

Maybe Protect the WB, including windows and provide the user with
buttons/menu options to manipulate the windows in code, as they will not be
able to interactively.

Otherwise, possibly Chip's recent VBA subclasser and trap the message may
work:

<msg
Nick,

Will you add a link to this file/concept on your site ?


I have added a link to the SubClassForVSCROLL.xls workbook on my Downloads
page (www.cpearson.com/excel/download.htm) under the topic "SubClassing the
ActiveWindow". It is also listed on my Topics page
(www.cpearson.com/excel/topic.htm ) under the "SubClassing" entry.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com
(email address is on the web site)
</msg

NickHK

"Walden2" wrote in message
oups.com...
Nick -

I opened a new workbook and split and froze the screen horizontally and
vertically.

I then created a New Window of the same workbook.

When I close Book1:1, the split screen info is no longer available. If
I close Book1:2, it is.

I have a special menu that I ask users to use when closing multiple
windows of the same workbook and if they do, they'll close the 2nd
window and preserve the split screens on all the tabs. Invariably,
however, I or a user will close the Window 1, losing the split screens.
Many users haven't learned how to split and freeze screens and there
are a lot of tabs, so I wanted to evoke a warning when manually closing
Window 1.

Thanks for your help.

Walden


NickHK wrote:
Walden,
Describe the steps to produce this behaviour.

NickHK

"Walden2" wrote in message
ups.com...
If you view 2 windows of the same workbook, and you close Windows:1,
all original formatting is lost.
Not so if you close Windows:2.

Is there a way to warn users that they will lose formatting if they
close Windows:1?

Thanks,

Walden




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
Warning upon closing sheet stevieboy1313 Excel Worksheet Functions 6 April 22nd 08 06:53 PM
closing file with multiple windows open gvanhoy3 Excel Worksheet Functions 1 November 15th 06 06:31 PM
Closing Windows Sameer Excel Discussion (Misc queries) 3 October 26th 06 10:48 AM
closing active windows without saving changes Tony Excel Programming 2 March 26th 05 10:24 PM
Using the Windows API to extract the Windows User Name Mike Excel Programming 1 November 24th 04 06:15 PM


All times are GMT +1. The time now is 08:21 AM.

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"