Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Protect selected sheet(s)

Hi

I've written some code that is supposed to protect a group of selected
sheets but I get an error 1004: Method 'Protect' of object '_Worksheet'
failed. Is this because you can only protect a sheet when there is only one
sheet selected, in that the protection of sheet can not be performed when
multiple sheets are selected. If this is the case then I'll store the sheet
indexes in an array and protect them one by one and then reselect them once
done.

TIA
KM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Protect selected sheet(s)

Yes, protect sheet by sheet.

--
Regards,
Tom Ogilvy


"Kevin McCartney" wrote:

Hi

I've written some code that is supposed to protect a group of selected
sheets but I get an error 1004: Method 'Protect' of object '_Worksheet'
failed. Is this because you can only protect a sheet when there is only one
sheet selected, in that the protection of sheet can not be performed when
multiple sheets are selected. If this is the case then I'll store the sheet
indexes in an array and protect them one by one and then reselect them once
done.

TIA
KM

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
Protect selected column Fareez Excel Discussion (Misc queries) 1 February 20th 09 06:50 AM
How do I protect selected cells on my worksheet? Abraz Setting up and Configuration of Excel 1 September 13th 06 06:27 PM
How do I protect selected cells on my worksheet? Abraz Setting up and Configuration of Excel 1 September 13th 06 12:28 PM
how do i make it so that when a sheat is selected either via link or tab, that xlLastCell is selected. the last on the sheet. Daniel Excel Worksheet Functions 1 July 12th 05 01:30 AM
Lock and protect cells without protect the sheet Christian[_7_] Excel Programming 6 December 28th 04 04:50 PM


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