PC Review


Reply
Thread Tools Rate Thread

Change passwords on fly

 
 
=?Utf-8?B?WFA=?=
Guest
Posts: n/a
 
      23rd Aug 2007
Using Office 2003 and Windows XP;

Is it possible to code a workbook to alter or change its sheet, workbook,
and module protection passwords on the fly? I would like to tie the change
trigger to the workbook's Open event.

I already know about the weaknesses involved in using Office passwords; this
is just an extra measure to go one step further to prevent prying eyes and
mistakes;

Example VBA would be most appreciated.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      23rd Aug 2007
You can turn on the macro recorder and make the changes manually. This will
give you the code you need. You would simply call such code from the
workbook_open event. Keeping the new password would require saving the
workbook.

At least for sheet level protection, you would need to unprotect the sheet
using the existing password, then reprotect it with a new password. I would
suspect this would be the case for other passwords as well.

--
Regards,
Tom Ogilvy


"XP" wrote:

> Using Office 2003 and Windows XP;
>
> Is it possible to code a workbook to alter or change its sheet, workbook,
> and module protection passwords on the fly? I would like to tie the change
> trigger to the workbook's Open event.
>
> I already know about the weaknesses involved in using Office passwords; this
> is just an extra measure to go one step further to prevent prying eyes and
> mistakes;
>
> Example VBA would be most appreciated.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change passwords =?Utf-8?B?a2VybWl0?= Windows XP Accessibility 0 12th Dec 2005 04:22 PM
Change passwords Jacky Microsoft Windows 2000 2 4th Nov 2005 12:00 AM
Change passwords darren jones Microsoft Windows 2000 Active Directory 2 28th Dec 2003 03:10 PM
passwords won't change using GPO Tony Microsoft Windows 2000 Group Policy 1 30th Jul 2003 08:10 PM
change passwords Miha Bernik Microsoft Windows 2000 Group Policy 1 19th Jul 2003 02:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:42 AM.