#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Macro Passwords

I have not been able to get my password protected spreadsheets to reapply the
password when I use a macro to unprotect the spreadsheet, perform a function,
and then attempt to reapply the password. I can reprotect the spreadsheet,
but it is without a password.

Can any help me understand what I am doing wrong. I really want to reapply
the password.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Macro Passwords

Try this

ActiveSheet.Unprotect Password:="Mypass"
'do lots of things
ActiveSheet.Protect Password:="Mypass"


Mike

"bmorgan8h" wrote:

I have not been able to get my password protected spreadsheets to reapply the
password when I use a macro to unprotect the spreadsheet, perform a function,
and then attempt to reapply the password. I can reprotect the spreadsheet,
but it is without a password.

Can any help me understand what I am doing wrong. I really want to reapply
the password.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default Macro Passwords

On Sat, 31 Jan 2009 13:33:00 -0800, bmorgan8h
wrote:

I have not been able to get my password protected spreadsheets to reapply the
password when I use a macro to unprotect the spreadsheet, perform a function,
and then attempt to reapply the password. I can reprotect the spreadsheet,
but it is without a password.

Can any help me understand what I am doing wrong. I really want to reapply
the password.


You have written something wrong in your code.

It is easier to help if you post the few code lines of your macro
where you try to protect the spreadsheet and it fails.

Lars-Åke
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
Passwords Tina Marie Excel Discussion (Misc queries) 2 March 17th 08 05:21 PM
Passwords, Macro Security and Vs2007 RobN[_2_] Excel Discussion (Misc queries) 1 May 19th 07 06:23 AM
Macro to help oepn the file without prompting fopr passwords [email protected] Excel Worksheet Functions 0 March 28th 06 01:29 AM
Macro to help oepn the file without prompting fopr passwords [email protected] Excel Worksheet Functions 0 March 28th 06 01:29 AM
changes and passwords Ciara Excel Discussion (Misc queries) 7 May 20th 05 02:32 PM


All times are GMT +1. The time now is 04:37 AM.

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"