Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Soe Soe is offline
external usenet poster
 
Posts: 5
Default password problem with protect worksheet

i tried to protect worksheet with password, then unprotect again, but it
doesn't work, it shows password error.
i simply used like

activeworksheet.protect password := "abc"

then
activesheet.unprotect password:="abc"

anybody can advice where i m wrong?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default password problem with protect worksheet

This is a copy of coding that is running in an apps of
mine.

Remember to protect each sheet by running a VBA prog

Sub MyProtect()
ActiveWorkbook.Protect Password:="ZAC"
ActiveSheet.Protect Password:="ZAC"
End Sub

Sub MyUnprotect()
ActiveWorkbook.Unprotect Password:="ZAC"
ActiveSheet.Unprotect Password:="ZAC"
End Sub



-----Original Message-----
i tried to protect worksheet with password, then

unprotect again, but it
doesn't work, it shows password error.
i simply used like

activeworksheet.protect password := "abc"

then
activesheet.unprotect password:="abc"

anybody can advice where i m wrong?


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default password problem with protect worksheet

Try ActiveSheet.Protect "abc"
and ActiveSheet.UnProtect "abc"
-----Original Message-----
i tried to protect worksheet with password, then

unprotect again, but it
doesn't work, it shows password error.
i simply used like

activeworksheet.protect password := "abc"

then
activesheet.unprotect password:="abc"

anybody can advice where i m wrong?


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default password problem with protect worksheet

ur suggestion works
thanx


"Steve B" wrote in message
...
Try ActiveSheet.Protect "abc"
and ActiveSheet.UnProtect "abc"
-----Original Message-----
i tried to protect worksheet with password, then

unprotect again, but it
doesn't work, it shows password error.
i simply used like

activeworksheet.protect password := "abc"

then
activesheet.unprotect password:="abc"

anybody can advice where i m wrong?


.



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
Is there a way that I can password protect a worksheet Lin4it Excel Worksheet Functions 3 November 27th 08 03:37 PM
Password Protect a Worksheet joinme4coffee Excel Discussion (Misc queries) 8 October 28th 07 07:02 PM
password protect cells problem Dave Peterson Excel Discussion (Misc queries) 2 January 10th 07 01:21 AM
Protect a worksheet with a password colettey29 Excel Worksheet Functions 2 September 26th 06 05:51 PM
password protect worksheet Ben Excel Discussion (Misc queries) 3 February 14th 06 02:30 PM


All times are GMT +1. The time now is 09:57 PM.

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"