Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Prompt to Unprotect Single Worksheet

I've found lots of code to unprotect all worksheets in a workbook,
both with and without prompts for the password; however I can't seem
to locate anything for prompting a user to unprotect a single
worksheet in a workbook. Any guidance is greatly appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 257
Default Prompt to Unprotect Single Worksheet

Seems to me the principle would be the same, wouldn't it? I hardly ever use
protection, but it looks from the documentation as though it applies to each
worksheet rather than to the workbook as a whole. So the examples you've
seen that apply to all worksheets in a workbook no doubt do something like a
For Each SheetObj In ActiveWorkbook.Worksheets, and then protect (or
unprotect) each SheetObj. So inside the loop it's doing exactly what you
want -- protect (or unprotect) a single sheet. What am I missing, here?

--- " wrote:
I've found lots of code to unprotect all worksheets in a workbook,
both with and without prompts for the password; however I can't seem
to locate anything for prompting a user to unprotect a single
worksheet in a workbook. Any guidance is greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Prompt to Unprotect Single Worksheet

On Sep 14, 11:18*pm, Bob Bridges
wrote:
Seems to me the principle would be the same, wouldn't it? *I hardly ever use
protection, but it looks from the documentation as though it applies to each
worksheet rather than to the workbook as a whole. *So the examples you've
seen that apply to all worksheets in a workbook no doubt do something like a
For Each SheetObj In ActiveWorkbook.Worksheets, and then protect (or
unprotect) each SheetObj. *So inside the loop it's doing exactly what you
want -- protect (or unprotect) a single sheet. *What am I missing, here?



--- " wrote:
I've found lots of code to unprotect all worksheets in a workbook,
both with and without prompts for the password; however I can't seem
to locate anything for prompting a user to unprotect a single
worksheet in a workbook. *Any guidance is greatly appreciated.- Hide quoted text -


- Show quoted text -


Same principle but I don't know how to make the change from "For each"
and looping through all of 28 of them to only the one worksheet.
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
Macro to prompt for password to unprotect worksheets Sarah (OGI) Excel Programming 2 March 26th 08 09:58 AM
Save a single worksheet in Excel as a single file. Dakota New Users to Excel 4 February 22nd 06 04:46 PM
Unprotect via prompt gavmer[_81_] Excel Programming 1 September 24th 04 03:44 AM
Unprotect via prompt gavmer[_80_] Excel Programming 1 September 23rd 04 08:58 AM
Protecting Multiple sheets with prompt for password to unprotect pkley Excel Programming 1 January 10th 04 06:46 AM


All times are GMT +1. The time now is 11:34 AM.

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"