Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default where is the workbook_open event handler???

How can I insert code in the workbook_open event handler?

I want to display a form when the workbook opens.

Also:

How do I protect my code with a password?

Cheers

Steff


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default where is the workbook_open event handler???

Steff,


You put the Workbook_Open code in the ThisWorkbook code module.
It won't work if placed anywhere else. You can protect the
VBProject with a password by going to the Tools menu in VBA,
selecting VBA Project Properties, and then the Protection tab.
There, check "Lock Project For Viewing", and enter a password.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Steff_DK " wrote in
message ...
How can I insert code in the workbook_open event handler?

I want to display a form when the workbook opens.

Also:

How do I protect my code with a password?

Cheers

Steff


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default where is the workbook_open event handler???

Hi Steff

Enter the VBA-editor with <Alt<F11.
Locate your project in the project window
(upper left of screen) (View Project explorer)
Doubleclick ThisWorkbook.
In the righthand window choose "Workbook"
from the left roll-down menu. Choose the
different events from the right roll-down menu.

To protect your code choose Tools VBA project properties
and the tab "Protection".
Return to the workbook with <Alt<F11
Save your workbook, close it and open again to activate
the protection.

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Steff_DK " skrev i en meddelelse
...
How can I insert code in the workbook_open event handler?

I want to display a form when the workbook opens.

Also:

How do I protect my code with a password?

Cheers

Steff


---
Message posted from http://www.ExcelForum.com/



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
different IDispatch in event handler Dirk[_2_] Excel Programming 0 January 23rd 04 11:04 PM
Cell Event Handler David Excel Programming 3 January 19th 04 04:51 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM
Re : Excel event handler Worksheet_SelectionChange TKT-Tang Excel Programming 1 July 18th 03 08:27 AM
Re : Excel event handler Worksheet_SelectionChange TKT-Tang Excel Programming 1 July 16th 03 07:21 AM


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