Example of what I'm trying to achieve.
Code: Select all
IF a range of cells is selected and the Columns are "C to F" then
process some code
ELSE
do nothing
END IF
Code: Select all
IF a range of cells is selected and the Columns are "C to F" then
process some code
ELSE
do nothing
END IF
Code: Select all
Dim FirstCol As Long
Dim LastCol As Long
FirstCol = Selection.Column
LastCol = Selection.Column + Selection.Columns.Count - 1