decadence
Well-known Member
- Joined
- Oct 9, 2015
- Messages
- 525
- Office Version
- 365
- 2016
- 2013
- 2010
- 2007
- Platform
- Windows
Hi, I am trying to set if statements so that only more than 1 column can be selected before the code runs, However I am having trouble with if the cells selected are more than 1 as it thinks the columns have been selected. Is there a way round this?
Code:
If Selection.Cells.Count = 1 Then Exit Sub
If Selection.Cells.Count > 1 Then Exit Sub '<--------
If Selection.Columns.Count = 1 Then Exit Sub