Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am using the macro below, where would I insert the unprotect and protect
statement for the sheet "Transactions", the latter is protected. sub CopyStatement() Dim LastRow As Long CopyStatementMsg = MsgBox("Are you sure you want to Copy Statement to Transactions Sheet?", vbYesNo + vbDefaultButton2) If CopyStatementMsg = vbNo Then End Application.ScreenUpdating = False ActiveSheet.Unprotect ActiveSheet.UsedRange LastRow = Cells.SpecialCells(xlLastCell).Row LastRow = Cells(Cells.Rows.Count, "W").End(xlUp).Row ActiveSheet.Range("$S$5:$W" & LastRow).Copy Sheets("Transactions").Range("A13").PasteSpecial Paste:=xlValues ActiveSheet.Protect Sheets("Transactions").Activate Range("F13").Select Application.ScreenUpdating = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy paste Macro in a Protected Sheet | Excel Discussion (Misc queries) | |||
How copy/paste values in Excel doc protected sheet 2 other doc? | Excel Discussion (Misc queries) | |||
Do not allow Copy/Paste Functionality in a Protected Sheet | Excel Worksheet Functions | |||
How to disable copy and paste function in a protected sheet | Setting up and Configuration of Excel | |||
How to copy/paste info into the protected sheet | Excel Discussion (Misc queries) |