Hi,
I have this code which puts a top border around specific cells.
![]()
Worksheets("Sheet1").Activate 'Can't select unless the sheet is active If ActiveCell.Value <> Selection.Offset(1, 0) Then ActiveCell.Borders.Item(xlEdgeBottom).Weight = xlMedium Selection.Offset(1, 0).Select Else: Selection.Offset(1, 0).Select End If
It works fine when attached to a button but I want it to be assigned to either 'OnEnter' or 'Keydown' within the worksheet
Any ideas?
Thanks
Alex
Bookmarks