Dear Friends,
Have you ever copy a row with formula in locked cells & insert it in a protected worksheet? could you tell me how to do it? Many thanks.
Dear Friends,
Have you ever copy a row with formula in locked cells & insert it in a protected worksheet? could you tell me how to do it? Many thanks.
try the following macro:
![]()
Sub Copy_Protected_Cells() ' 'You first need to unprotect the destination sheet Sheets("Sheet2").Unprotect Password:="pl" 'Then you can copy your cells from the protected one 'It is not necessary to unprotect this one though Sheets("Sheet1").Range("A2:E2").Copy Sheets("Sheet2").Range("A2").PasteSpecial Application.CutCopyMode = False 'then you protect the destination sheet again Sheets("sheet2").Protect Password:="pl" ' End Sub
Pierre Leclerc
_______________________________________________________
If you like the help you got,
Click on the STAR "Add reputation" icon at the bottom.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks