Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I lock VBA?

After wb and sheets are protect Alt-F11 will still open my VBA window.
Is there a way to stop this from happening?

tia

jp
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,939
Default How do I lock VBA?

You are probably best off to just protect the project. In the VBE in the
Project Explorer - right Click on the Project - Select Properties - Select
Protection - Check Lock Project for Viewing and add a Password.
--
HTH...

Jim Thomlinson


" wrote:

After wb and sheets are protect Alt-F11 will still open my VBA window.
Is there a way to stop this from happening?

tia

jp

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default How do I lock VBA?

Why should Excel do this? If you have a second, not protected workbook open,
would you still want Excel to block access to the VBA editor? Makes no sense
to me.

If you want to prevent your users from viewing your code, password protect
your VBA code.
If you want to prevent the use of Alt-F11, you can use an OnKey method (e.g.
in your Auto_open macro) to reassign this key combination to something else
(or nothing at all). But be aware that user can still access the VBA editor
via the menu.

Cheers,

Joerg


wrote in message
...
After wb and sheets are protect Alt-F11 will still open my VBA window.
Is there a way to stop this from happening?

tia

jp



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I lock VBA?

Thx guys!

On Thu, 31 Aug 2006 17:03:52 -0400, wrote:

After wb and sheets are protect Alt-F11 will still open my VBA window.
Is there a way to stop this from happening?

tia

jp


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
Lock all cells? JoeBed Excel Discussion (Misc queries) 8 June 1st 06 07:21 PM
How can I lock worksheets while macros can still enter into them? enginguven Excel Discussion (Misc queries) 3 January 12th 06 12:56 AM
How to lock a file (wholly or partly) 0-0 Wai Wai ^-^ Excel Discussion (Misc queries) 1 November 27th 05 09:17 PM
Lock Project LAF Excel Discussion (Misc queries) 7 November 6th 05 07:44 PM
Lock the Keyboard [email protected] Excel Discussion (Misc queries) 5 May 25th 05 06:23 PM


All times are GMT +1. The time now is 12:54 PM.

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

About Us

"It's about Microsoft Excel"