LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Can I use a Macro to unprotect a sheet in the workbook?

On Wed, 20 Jul 2005, Ron de Bruin wrote:

Try this with the password "ron"

With Sheets("Sheet2")
.Unprotect "ron"
.Rows("10:15").EntireRow.Hidden = True
.Protect "ron"
End With


You can also simplify it to:

With Sheets("Sheet2")
.Protect "ron", UserInterfaceOnly:=True
.Rows("10:15").EntireRow.Hidden = True
End With

Don <www.donwiss.com (e-mail link at home page bottom).
 
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
Forgotten Password to Unprotect Workbook/sheet Brandon Excel Discussion (Misc queries) 10 April 4th 13 12:10 PM
Unprotect sheet/workbook Steve New Users to Excel 7 September 19th 08 12:04 AM
unprotect sheet & workbook dim out template-just like stationery function Excel Worksheet Functions 1 March 13th 08 01:28 PM
How to unprotect a workbook by macro? FARAZ QURESHI Excel Discussion (Misc queries) 4 December 29th 06 12:27 AM
Macro to unprotect workbook Mike[_65_] Excel Programming 8 February 11th 04 05:16 PM


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