Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Disabling Visual Basic Editor After Protecting Worksheet/Workbook

Is there anyway that i can prevent a user from launching the visual basic
editor in excel on a protected worksheet/workbook? Basically i dont want a
user to be able to see any of the vb code that is on the worksheet.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Disabling Visual Basic Editor After Protecting Worksheet/Workbook

Reggie, you can protect the VBA project

To protect the VBA project, from your workbook right-click the workbook's
icon and pick View Code. This icon is to the left of the "File" menu this
will open the VBA editor, in Project Explorer right click on your workbook
name, if you don't see it press CTRL + r to open the Project Explorer then
select VBA project properties, protection, check lock project for viewing
and set a password. Press Alt and Q to close this window and go back to your
workbook and save and close the file. Be aware that this password can be
broken by third party software

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Reggie" wrote in message
...
Is there anyway that i can prevent a user from launching the visual basic
editor in excel on a protected worksheet/workbook? Basically i dont want a
user to be able to see any of the vb code that is on the worksheet.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Disabling Visual Basic Editor After Protecting Worksheet/Workb

Thanks! thats exactly what i was looking for

"Paul B" wrote:

Reggie, you can protect the VBA project

To protect the VBA project, from your workbook right-click the workbook's
icon and pick View Code. This icon is to the left of the "File" menu this
will open the VBA editor, in Project Explorer right click on your workbook
name, if you don't see it press CTRL + r to open the Project Explorer then
select VBA project properties, protection, check lock project for viewing
and set a password. Press Alt and Q to close this window and go back to your
workbook and save and close the file. Be aware that this password can be
broken by third party software

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Reggie" wrote in message
...
Is there anyway that i can prevent a user from launching the visual basic
editor in excel on a protected worksheet/workbook? Basically i dont want a
user to be able to see any of the vb code that is on the worksheet.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Disabling Visual Basic Editor After Protecting Worksheet/Workb

Your welcome

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Reggie" wrote in message
...
Thanks! thats exactly what i was looking for

"Paul B" wrote:

Reggie, you can protect the VBA project

To protect the VBA project, from your workbook right-click the

workbook's
icon and pick View Code. This icon is to the left of the "File" menu

this
will open the VBA editor, in Project Explorer right click on your

workbook
name, if you don't see it press CTRL + r to open the Project Explorer

then
select VBA project properties, protection, check lock project for

viewing
and set a password. Press Alt and Q to close this window and go back to

your
workbook and save and close the file. Be aware that this password can be
broken by third party software

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Reggie" wrote in message
...
Is there anyway that i can prevent a user from launching the visual

basic
editor in excel on a protected worksheet/workbook? Basically i dont

want a
user to be able to see any of the vb code that is on the worksheet.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Disabling Visual Basic Editor After Protecting Worksheet/Workbook

Hi Reggie,

Select the project in the VBE
Tools | VBAProject Properties | Select the Ptotection Tab | Lock and
password protect

Then, save,close and re-open the workbook.


---
Regards,
Norman


"Reggie" wrote in message
...
Is there anyway that i can prevent a user from launching the visual basic
editor in excel on a protected worksheet/workbook? Basically i dont want a
user to be able to see any of the vb code that is on the worksheet.





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
Visual Basic Editor Ron Rueter Excel Discussion (Misc queries) 3 October 28th 08 02:48 PM
Protecting Code in Visual Basic Editor (Excel 2003) Johnny S. NH Excel Worksheet Functions 1 August 30th 08 07:26 AM
Visual Basic Editor opens bi itself KG Excel Discussion (Misc queries) 0 September 15th 07 04:02 PM
Visual basic editor Answerfactory Excel Discussion (Misc queries) 3 October 9th 06 09:13 PM
Can I run Visual Basic procedure using Excel Visual Basic editor? john.jacobs71[_2_] Excel Programming 3 December 26th 05 02:22 PM


All times are GMT +1. The time now is 11:24 PM.

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"