Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Temporarily override sheet protection

Hi, Does anyone know of an easy way to temporarily override the sheet
protection?

After copying a range - I want to paste into a protected sheet.

Rows("2:2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

Elijah


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Temporarily override sheet protection

Elijah,

If it is password protected like a few that I work with, I use the following
code to un protect...

ThisWorkbook.Worksheets(p_Sheet).Unprotect ("password")

And then when I am done....

ThisWorkbook.Worksheets(p_Sheet).Protect ("password")

HTH, Dean.

"Elijah" wrote:

Hi, Does anyone know of an easy way to temporarily override the sheet
protection?

After copying a range - I want to paste into a protected sheet.

Rows("2:2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

Elijah



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
Excel Data Protection Best Practice: AKA: Real Sheet Protection Mushman(Woof!)[_2_] Excel Discussion (Misc queries) 4 December 30th 09 01:20 AM
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
Can a Macro override sheet Protection? Derrick Excel Discussion (Misc queries) 6 July 24th 09 08:17 PM
How do I temporarily disable hyperlinks in an excel sheet? looloof Setting up and Configuration of Excel 1 December 2nd 07 01:47 PM
Macro override password protection Cheryl Excel Programming 1 June 15th 04 03:08 AM


All times are GMT +1. The time now is 08:28 PM.

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"