I'm having a problem when a user selects a entire column in the worksheet the code is attempting to evaluate changes to each cell. How can I write a simple if statement that if the entire column or columns are selected to exit the sub?
I believe my issue lies with this line For Each cell In target.Cells
.
After this line several things occur so I was thinking I could embed this in a line such as:
If selection = .Columns("A:A").EntireColumn.Select Then Exit Sub.
How do i define the ".Columns("A:A")" to be any column selection?
Worksheet_Change
event... How does this come to be? – John BustosIf Selection.Cells(1, 1).Row = 1 And Selection(Selection.Count).Row = 1048576 Then
? – BobbitWormJoe