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 - macro code to open a protected sheet, enter passowrd, and then protect sheet

i want to open a protected sheet - where protection has been done usin
a passowrd. and then later protect the sheet again using a password

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default excel - macro code to open a protected sheet, enter passowrd, and then protect sheet

Hi
use something like
activesheet.unprotect password:="yourpassword"
'some code
activesheet.protect password:="yourpassword"

--
Regards
Frank Kabel
Frankfurt, Germany


i want to open a protected sheet - where protection has been done
using a passowrd. and then later protect the sheet again using a
password.


---
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
ON OPEN VBA Code input incorrectly now excel sheet wont open mmartin New Users to Excel 1 February 16th 11 11:33 PM
Code to protect/unprotect a sheet using a macro with password FredH Excel Discussion (Misc queries) 5 October 23rd 07 04:49 PM
when you protect a sheet, you can't enter using a form pmms Excel Discussion (Misc queries) 4 August 3rd 06 08:38 PM
Unable to open excel sheet in Protected mode from VB 6.0 ourspt Setting up and Configuration of Excel 0 January 26th 05 11:07 AM
protect sheet macro - can't have it enter password inaz Excel Programming 4 January 14th 04 04:52 AM


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