Re: $$Excel-Macros$$ how can protect the excel sheet in VBA Passward.

2010-04-27 Thread N.Shivkumar
Dear Sir I have used this code in one of my project viz. Private Sub Worksheet_Activate() Sheet2.Protect "1823" Dim pass As String pass = InputBox("N Shivkumar has for obvious reasons set a Password, kindly enter password to unprotect sheet") If pass = "1823" Then Sheet2.Unprotect "1823" El

Re: $$Excel-Macros$$ how can protect the excel sheet in VBA Passward.

2010-04-08 Thread rf1234 rf1234
Hello Dear, Following is the Code to Protect Unprotect Excel Sheet Using VBA. '' Sub ProtectSheet() Dim Passwo

RE: $$Excel-Macros$$ how can protect the excel sheet in VBA Passward.

2010-03-26 Thread Dave Bonallack
Hi, The code for protecting a worsheet is: Sheets("YourSheetName").Protect Password = "YourPassword" Regards - Dave. Date: Fri, 26 Mar 2010 17:40:58 +0530 Subject: $$Excel-Macros$$ how can protect the excel sheet in VBA Passward. From: jaihumtu...@gmail.com To: excel-macros@googlegrou