ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Paste Special in protected sheet (https://www.excelbanter.com/excel-discussion-misc-queries/201926-paste-special-protected-sheet.html)

Sharon C

Paste Special in protected sheet
 
I need to perform copy paste special to replace formulas with values in a
protected sheet. Is there a macro that will unprotect and perform copy paste
special?


Gord Dibben

Paste Special in protected sheet
 
After selecting and copying the cells, run this macro to pastevalues in
place.

To pastevalues elsewhere, just select a single after after copying then run
the macro.

Sub pasteit()
ActiveSheet.Unprotect Password:="pword"
Selection.PasteSpecial xlPasteValues
Application.CutCopyMode = False
ActiveSheet.Protect Password:="pword"
End Sub


Gord Dibben MS Excel MVP

On Tue, 9 Sep 2008 19:28:06 -0700, Sharon C <Sharon
wrote:

I need to perform copy paste special to replace formulas with values in a
protected sheet. Is there a macro that will unprotect and perform copy paste
special?



Sharon C[_2_]

Paste Special in protected sheet
 
Thanks - it works great

"Sharon C" wrote:

I need to perform copy paste special to replace formulas with values in a
protected sheet. Is there a macro that will unprotect and perform copy paste
special?



All times are GMT +1. The time now is 07:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com