G
Guest
I want to write a code that allows users of my spreadsheet to select multiple
rows and delete them. However, i need to check first that the selected rows
are located within a certain range, that is between row 12 and row 50. If the
selection is outside that range, then the user will get a message saying they
can't delete this selection.
How do you say the following in VBA?
If the current selection is located between row 12 and row 50 then
delete selection.
Else
msgbox "sorry, you can't delete."
Many thanks
Tendresse
rows and delete them. However, i need to check first that the selected rows
are located within a certain range, that is between row 12 and row 50. If the
selection is outside that range, then the user will get a message saying they
can't delete this selection.
How do you say the following in VBA?
If the current selection is located between row 12 and row 50 then
delete selection.
Else
msgbox "sorry, you can't delete."
Many thanks
Tendresse