Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default password protect project with VBA code

Hi All.
For Ex03, how do I password protect the project from within the VBA code?

I can't find the equivalent coding I've used for protecting a workbook, or a
worksheet.


I have 2 workbooks, Workbook1, and Workbook2.
Using code running in Workbook1, a module in Workbook1 is copied into
Workbook2. After the copy I want to password protect the VBE in Workbook2.
How do I do it? Do I have to do a Save As... of Workbook2?
Thank you for looking at my posting.
Paul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default password protect project with VBA code

The object model does not support this. You MIGHT be able to use
SendKeys to send the appropriate keystrokes, but I wouldn't count
on it.


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

"PaulM" wrote in message
...
Hi All.
For Ex03, how do I password protect the project from within the
VBA code?

I can't find the equivalent coding I've used for protecting a
workbook, or a
worksheet.


I have 2 workbooks, Workbook1, and Workbook2.
Using code running in Workbook1, a module in Workbook1 is
copied into
Workbook2. After the copy I want to password protect the VBE
in Workbook2.
How do I do it? Do I have to do a Save As... of Workbook2?
Thank you for looking at my posting.
Paul



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
password protect vba code greg Excel Discussion (Misc queries) 3 December 8th 04 04:03 PM
password protect vba code greg Excel Programming 3 December 8th 04 04:03 PM
password protect vba code delali Excel Programming 4 September 30th 04 06:32 PM
Password protect excel code pantelis Excel Programming 0 August 17th 04 03:14 PM
Password Protect Workbook via code John Wilson Excel Programming 1 October 9th 03 05:18 PM


All times are GMT +1. The time now is 07:33 AM.

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"