Hello
In my macro, I sort by 'leaving date' all those leavers which I then want to remove.
Once sorted, I select all the dates using
[pre]Range(Selection, Selection.End(xlDown)).Select[/pre]
Now manually recording the macro, I use Shift and Spacebar to then select all the rows and then delete them.
But the recorded code specifies the rows - eg 2-235, but in another version of the report, the leavers might go up to row 300.
I've had a look in the help and there is the code [pre]application.onkey[/pre] but it doesn't seem to include a spacebar option.
Am I trying to do something impossible?
thank you for helping
____________
Pendle
In my macro, I sort by 'leaving date' all those leavers which I then want to remove.
Once sorted, I select all the dates using
[pre]Range(Selection, Selection.End(xlDown)).Select[/pre]
Now manually recording the macro, I use Shift and Spacebar to then select all the rows and then delete them.
But the recorded code specifies the rows - eg 2-235, but in another version of the report, the leavers might go up to row 300.
I've had a look in the help and there is the code [pre]application.onkey[/pre] but it doesn't seem to include a spacebar option.
Am I trying to do something impossible?
thank you for helping
____________
Pendle