Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to check if the Excel VBE is opened within Excel?

I want to disable the VBE when user opens a secured
workbook. I'v already protected the workbook and
worksheets as well as disabled the VBE from the Tool menu
when user opens the secured workbook. However, I found
that if VBE is opened prior to opening the secured Excel
workbook. The user can still look at the supposedly
secured codes in the workbook.

Can someone please tell me how to check the VBE is already
open such. that I can close it as soon as the user opens a
secured workbook ?

Thanks in advance for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default How to check if the Excel VBE is opened within Excel?

wellie,

The VBA Editor shouldn't be opened unless the user already has
it opened from another workbook when they open yours.
You could just lock the project with a password and then
it wouldn't matter whether the VBA Editor was opened
or not.
From the VBA Editor.....
Tools/VBA Project Properties/Protection
Check "Lock Project for Viewing"
and enter a passoword.

Note: All passwords, Workbook/Worksheet and VBA can
be cracked by an experienced user.

John

wellie wrote:

I want to disable the VBE when user opens a secured
workbook. I'v already protected the workbook and
worksheets as well as disabled the VBE from the Tool menu
when user opens the secured workbook. However, I found
that if VBE is opened prior to opening the secured Excel
workbook. The user can still look at the supposedly
secured codes in the workbook.

Can someone please tell me how to check the VBE is already
open such. that I can close it as soon as the user opens a
secured workbook ?

Thanks in advance for your help.


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
Check a sheet each time file opened? Don Excel Discussion (Misc queries) 1 February 24th 09 06:27 PM
use check box created in Excel 2003 opened in Excel 2007 TommyB Excel Worksheet Functions 1 February 21st 09 02:01 AM
Excel 2003 when closing Excel after having opened a project locked for viewing.. password prompt??? braindead Excel Discussion (Misc queries) 0 March 25th 05 01:58 PM
Excel 2000 file when opened in Excel 2003 generates errors? Doug Excel Discussion (Misc queries) 13 December 25th 04 10:20 PM
Excel 97 chart opened in Excel 2003 - Source Data problem DHunt Charts and Charting in Excel 0 December 6th 04 08:05 PM


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