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


hi,
I am very happy if somebody help me for writing a code to protect
the sheet
i mean first i wanted to unprotect the sheet by a password then i will
have my own line of codes and finally i wanted to protect the sheet with
the same password.
password u can use 'xyz'.

with regards
nowal


--
nowfal
------------------------------------------------------------------------
nowfal's Profile: http://www.excelforum.com/member.php...o&userid=10003
View this thread: http://www.excelforum.com/showthread...hreadid=387829

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default sheet protection

A good way to begin learning VBA syntax is using the macro recorder. Record
the process of protecting and unprotecting. You can then insert this code
into your routine.

--
Damon Longworth

Don't miss out on the 2005 Excel User Conference
Sept 16th and 17th
Stockyards Hotel - Ft. Worth, Texas
www.ExcelUserConference.com


"nowfal" wrote in
message ...

hi,
I am very happy if somebody help me for writing a code to protect
the sheet
i mean first i wanted to unprotect the sheet by a password then i will
have my own line of codes and finally i wanted to protect the sheet with
the same password.
password u can use 'xyz'.

with regards
nowal


--
nowfal
------------------------------------------------------------------------
nowfal's Profile:
http://www.excelforum.com/member.php...o&userid=10003
View this thread: http://www.excelforum.com/showthread...hreadid=387829



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default sheet protection

Hi nowfal

ActiveSheet.Unprotect Password:= "xyz"
do your thing
ActiveSheet.Protect Password:= "xyz"

"nowfal" wrote:


hi,
I am very happy if somebody help me for writing a code to protect
the sheet
i mean first i wanted to unprotect the sheet by a password then i will
have my own line of codes and finally i wanted to protect the sheet with
the same password.
password u can use 'xyz'.

with regards
nowal


--
nowfal
------------------------------------------------------------------------
nowfal's Profile: http://www.excelforum.com/member.php...o&userid=10003
View this thread: http://www.excelforum.com/showthread...hreadid=387829


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default sheet protection


Hi ,

I got the solution by searching an old thread in which Mr.ron an
Mr.Tom oglivy had replied. The solution is as
worksheets("sheetname").portect password:="password"
add whatever the codes and all
worksheets("sheetname").unprotected Password:="password"

now my password will take care of the sheet.
anyway thanks to Mr.ron and Mr.Tom
with regards
nowfa

--
nowfa
-----------------------------------------------------------------------
nowfal's Profile: http://www.excelforum.com/member.php...fo&userid=1000
View this thread: http://www.excelforum.com/showthread.php?threadid=38782

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
Sheet Protection Mark Wolf New Users to Excel 5 October 2nd 11 04:59 PM
Excel Data Protection Best Practice: AKA: Real Sheet Protection Mushman(Woof!)[_2_] Excel Discussion (Misc queries) 4 December 30th 09 01:20 AM
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
Sheet protection error msg - Unrequested sheet activation deltree[_3_] Excel Programming 0 January 28th 04 06:20 PM
Sheet protection bug?? Dag Johansen[_5_] Excel Programming 1 October 14th 03 04:43 PM


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