Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA-Protect and unprotect sheet with BVA

I can`t run a macro because the cells are blocked and the shee
protected. How do I unprotect and protect a sheet with BVA code tha
include a prestablished pasword.
Thanks in advance

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Excel VBA-Protect and unprotect sheet with BVA

Sheets("Sheet1").UnProtect("YourPwd")
Sheets("Sheet1").Protect("YourPwd")
HTH
Regards
Pascal

"marfrk " a écrit dans le message de
news: ...
I can`t run a macro because the cells are blocked and the sheet
protected. How do I unprotect and protect a sheet with BVA code that
include a prestablished pasword.
Thanks in advance.


---
Message posted from
http://www.ExcelForum.com/



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
Code to protect/unprotect a sheet using a macro with password FredH Excel Discussion (Misc queries) 5 October 23rd 07 04:49 PM
Protect - Unprotect Sheet - Visual Source Safe [email protected] Excel Discussion (Misc queries) 0 June 6th 06 09:13 PM
unprotect/protect grouped worksheets in excel mcwhirter Setting up and Configuration of Excel 1 August 8th 05 01:21 AM
Protect/unprotect sheet with password with VBA? dragontale[_7_] Excel Programming 1 April 19th 04 09:29 PM
VBA code - protect and unprotect a sheet Jeff Excel Programming 2 December 2nd 03 11:44 PM


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