#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Grouping

Auto_open in a general module is the key. Excel knows to look at for that name
(along with auto_close) and do something special.

If you want the same kind of thing under ThisWorkbook, you have to play be
excel's rules and use the _beforeclose (or _beforesave???) event.

It's kind of like Autoexec.bat when you turn on the pc--well, when you used DOS
a hundred years ago!

David Hilberg wrote:

Dave, why does your sub work when added to a regular module, but not
to"ThisWorkbook"?

- David

Dave Peterson wrote:
Have you thought about putting the same kind of routine in the workbook_open or
auto_open procedures.

Then you don't have to bother the person closing the workbook with any prompt or
a reminder to save.

Option Explicit
Sub auto_open()
ActiveSheet.Select
End Sub

Holly wrote:
Is it possible to prompt an alert upon exit of a worksheet alerting the user
that the worksheets are being saved with grouping on?


--

Dave Peterson
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
Grouping Rachana Excel Worksheet Functions 1 October 7th 05 10:19 PM
Grouping Vitruvius Excel Worksheet Functions 1 August 16th 05 09:07 PM
Grouping stuart.young Excel Discussion (Misc queries) 1 August 1st 05 12:56 PM
Grouping Ray Excel Discussion (Misc queries) 0 March 2nd 05 04:51 PM
Grouping Lila Excel Discussion (Misc queries) 1 March 1st 05 03:33 AM


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