Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've got a spreadsheet that has 2 tabs on it. Both tabs are protected, with
the header (top 3 rows) being locked, and the rest is all unlocked. I have a button on the top of the form that when clicked, it will move the current row to the 2nd tab, in A4 (the row right under the header). This works fine, except when the 2nd row is protected. Is there any way to keep the 2nd sheet protected, but still let it move the row, either to A4, or to the next available line, whether it be A10, or A30, or whatever? Is there a way to make it look for the next blank line and move it there? Or is there a way to let it move to A4 when the sheet is protected? My current code behind the Move Row button is below: Private Sub MoveRow_Click() ActiveCell.EntireRow.Copy Worksheets("Tracking").Activate 'the other sheet ActiveSheet.Range("A5").Select ActiveCell.Insert Shift:=xlShiftDown Worksheets("Western").Activate 'back to the original ActiveCell.EntireRow.Delete Shift:=xlShiftUp End Sub I need to make sure that the new row being moved over does not replace the current row, but just moves it all down a row, or something similar so that all the new stuff is there. I hope someone can help me... I'm desperate... Thanks! Stacie |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Add or Delete Rows in Protected worksheets | Excel Discussion (Misc queries) | |||
Inserting rows into worksheets that are protected | Excel Worksheet Functions | |||
HIDING ROWS IN PROTECTED WORKSHEETS | Excel Discussion (Misc queries) | |||
Moving rows to 2nd tab when worksheet is protected | Excel Programming | |||
Sorting and Moving Rows in Multiple "stencil " worksheets | Excel Programming |