Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default changing passwords

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default changing passwords

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.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default changing passwords


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
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
Excel passwords are changing when two workbooks are open. Password Excel Worksheet Functions 0 December 21st 05 04:31 PM
Passwords Black Jack Excel Programming 1 June 29th 05 03:03 AM
passwords [email protected] Excel Programming 1 February 3rd 05 08:04 PM
Passwords ammader Excel Programming 0 December 22nd 03 02:41 PM
Changing data source passwords in workbook ? MikeN[_2_] Excel Programming 1 December 3rd 03 08:33 AM


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