Hi
Quite new to VBA, but having trouble with a macro. I have a protected spreadsheet where users need to delete rows they do not require when they use it.
I therefore need a macro which will do the following when they click a button:
Ask the user which rows they wish to delete (this needs to be able to include a range of rows e.g. 4-10, not just single rows)
Deletes those rows
OR option B
the user selects the rows
They click a delete rows button
selected rows are coloured yellow
Message box (Yes/No) asks if the user has highlighted the correct rows
If yes go to next prompt
If No, cancel macro
2nd message box
Message box (Yes/No) – do you wish to delete the selected rows
If no: stop Macro
If Yes, delete entire rows
Any help would be extremely appreciated!
NJF
Quite new to VBA, but having trouble with a macro. I have a protected spreadsheet where users need to delete rows they do not require when they use it.
I therefore need a macro which will do the following when they click a button:
Ask the user which rows they wish to delete (this needs to be able to include a range of rows e.g. 4-10, not just single rows)
Deletes those rows
OR option B
the user selects the rows
They click a delete rows button
selected rows are coloured yellow
Message box (Yes/No) asks if the user has highlighted the correct rows
If yes go to next prompt
If No, cancel macro
2nd message box
Message box (Yes/No) – do you wish to delete the selected rows
If no: stop Macro
If Yes, delete entire rows
Any help would be extremely appreciated!
NJF