Firstly you need to move the macro to a Standard Module. Then add this code to your worksheet event, it will limit the action to the specified Columns & only empty cells
![]()
Option Explicit Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Column < 5 Or Target.Column > 9 Then Exit Sub If Not IsEmpty(Target) Then Exit Sub AddToCell End Sub
Bookmarks