khouzam
Military
- Jul 17, 2003
- 2
Hi,
I'm trying to write a function that completes a task whether the user selects any single cell, or any adjoining multiple cells (eg any two cells side by side, or any two cells top and bottom, or any block of 4 or more).
This I want to do with an IF statement
ie
If [a single cell is selected] Then
do task
ElseIf [more than one cell is selected in one row] Then
do task
ElseIf [more than one cell is selected in one column] Then
do task
ElseIf [a block of cells is selected] Then
do task
End If
Can anyone please help me find out what the code for each argument in the square brackets above is?
Thanks!
I'm trying to write a function that completes a task whether the user selects any single cell, or any adjoining multiple cells (eg any two cells side by side, or any two cells top and bottom, or any block of 4 or more).
This I want to do with an IF statement
ie
If [a single cell is selected] Then
do task
ElseIf [more than one cell is selected in one row] Then
do task
ElseIf [more than one cell is selected in one column] Then
do task
ElseIf [a block of cells is selected] Then
do task
End If
Can anyone please help me find out what the code for each argument in the square brackets above is?
Thanks!