PC Review


Reply
Thread Tools Rate Thread

changing passwords

 
 
davegb
Guest
Posts: n/a
 
      27th Nov 2006
I googled in this NG for help, but couldn't find quite what I need.

One of my users created a workbook with worksheets for her staff to
enter coded status data which is then tabulated by a macro I wrote for
her. All works great.

Each of the worksheets is password protected. Worksheets with "Monthly"
in the title (like "Dave - Monthly", etc.) have a password of
"2006monthly". Worksheets with "Totals" in the sheetname have a
password of "2006totals". Now she needs to change these to
"2007monthly" and "2007totals", and will need to do this again next
year. I could just change them manually, but there are enough of them
that I'd rather right code to do it so that next year, she can change
it herself. But I'm not even sure how to start on this one, other than
a "for each" loop through the worksheets. Can someone get me started in
the right direction?

Thanks as always.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      28th Nov 2006
Would this work?

Sub Dt()
x = Format(Now, "yyyy") & "Totals"
MsgBox "Password is " & x
End Sub

"davegb" wrote:

> I googled in this NG for help, but couldn't find quite what I need.
>
> One of my users created a workbook with worksheets for her staff to
> enter coded status data which is then tabulated by a macro I wrote for
> her. All works great.
>
> Each of the worksheets is password protected. Worksheets with "Monthly"
> in the title (like "Dave - Monthly", etc.) have a password of
> "2006monthly". Worksheets with "Totals" in the sheetname have a
> password of "2006totals". Now she needs to change these to
> "2007monthly" and "2007totals", and will need to do this again next
> year. I could just change them manually, but there are enough of them
> that I'd rather right code to do it so that next year, she can change
> it herself. But I'm not even sure how to start on this one, other than
> a "for each" loop through the worksheets. Can someone get me started in
> the right direction?
>
> Thanks as always.
>
>

 
Reply With Quote
 
davegb
Guest
Posts: n/a
 
      28th Nov 2006

JLGWhiz wrote:
> Would this work?
>
> Sub Dt()
> x = Format(Now, "yyyy") & "Totals"
> MsgBox "Password is " & x
> End Sub


Thanks for the reply, but I don't need a message box telling me what
the password I want is! I need to change all the passwords in the
workbook.

>
> "davegb" wrote:
>
> > I googled in this NG for help, but couldn't find quite what I need.
> >
> > One of my users created a workbook with worksheets for her staff to
> > enter coded status data which is then tabulated by a macro I wrote for
> > her. All works great.
> >
> > Each of the worksheets is password protected. Worksheets with "Monthly"
> > in the title (like "Dave - Monthly", etc.) have a password of
> > "2006monthly". Worksheets with "Totals" in the sheetname have a
> > password of "2006totals". Now she needs to change these to
> > "2007monthly" and "2007totals", and will need to do this again next
> > year. I could just change them manually, but there are enough of them
> > that I'd rather right code to do it so that next year, she can change
> > it herself. But I'm not even sure how to start on this one, other than
> > a "for each" loop through the worksheets. Can someone get me started in
> > the right direction?
> >
> > Thanks as always.
> >
> >


 
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
Changing passwords =?Utf-8?B?Z29sZmluZ2ZvcmV2ZXI=?= Windows XP General 5 12th Aug 2006 10:04 PM
Changing Passwords Frustrated Windows XP Security 1 5th Oct 2004 08:07 AM
changing passwords =?Utf-8?B?UGVnYWxpdHRh?= Windows XP Help 1 22nd Jul 2004 10:37 AM
Changing passwords. =?Utf-8?B?U3RlcGhlbg==?= Microsoft Windows 2000 Active Directory 5 18th Mar 2004 11:44 AM
Changing Passwords Kim Windows XP Accessibility 1 30th Oct 2003 04:56 PM


Features
 

Advertising
 

Newsgroups
 


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