Should it?
Seems no choice about which row is moved down. No mention in post 1 of always moving row 2 down.
Also seems to not allow for this unless the code is to be altered every time names are added or deleted
@CTN
Welcome to the MrExcel board!
Don't you mean all rows
below will be moved up?
If not more explanation please.
If you did mean all rows below, then my suggestion would be to get rid of the checkboxes. They are not needed and would add complication when adding/deleting names in the list.
Instead, my suggestion to move somebody to the bottom of the list would be to double-click their name in column B after installing the double-click code given below as follows.
(Test with a
copy of your workbook)
1. Right click the sheet name tab and choose "View Code".
2. Copy and Paste the code below into the main right hand pane that opens at step 1.
3. Close the Visual Basic window & test by double-clicking names in column B. (I have assumed a heading row 1 and names starting in row 2)
4. Your workbook will need to be saved as a macro-enabled workbook (*.xlsm).
VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column = 2 And Target.Row > 1 And Len(Target.Value) > 0 Then
Cancel = True
Application.ScreenUpdating = False
Target.EntireRow.Copy Destination:=Range("B" & Rows.Count).End(xlUp).Offset(1, -1)
Target.EntireRow.Delete
Application.ScreenUpdating = True
End If
End Sub