LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Auto_open from Worksheet Object Code

All,

I am developing a sort of disclaimer sheet that 'veryhides' all sheets
in a model on workbook_open, requiring a user to agree to a disclaimer
before the sheets are then unhidden.

The aim is to distribute the disclaimer sheet as a single worksheet
that can be copied into any spreadsheet, and work pretty much
immediately.

The problem i am hitting is i can't find a way to replicate the
workbook_open/auto_open event purely with code contained in the
worksheet object.

Q1) Is it impossible?

My fall back is to use an auto_open routine in a module, and create an
installation .xls that will

a) copy the sheet across
b) copy the module across

but

Q2) I don't know how to copy a module from one workbook to another in
code
Q3) I don't know how to check (in code) first that the destination
workbook doesn't already have an auto_open routine, or what to do
about it if it does!

ANY help on Q1,2, or 3 very very much appreciate.

Cheers,

Stu

 
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
hide/protext auto_open code so user can't prevent it from running Scott Excel Programming 4 May 18th 07 04:40 PM
Sub Auto_Open() - Sheet name - error code [email protected] Excel Programming 9 September 12th 06 01:18 PM
Auto_Open Select Worksheet Phil H[_2_] Excel Programming 2 June 27th 06 10:49 AM
Need Code to Set Scaling Zoom in PageSetup in Auto_Open Sub Phil Hageman[_3_] Excel Programming 3 April 20th 04 09:11 PM


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