If I want to restrict the Selection in the following macro to column C, how would I go about doing that??
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("A2").Value = Application.Sum(Target.SpecialCells(xlCellTypeVisible)) / 1440
End Sub
Thanks!
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("A2").Value = Application.Sum(Target.SpecialCells(xlCellTypeVisible)) / 1440
End Sub
Thanks!