Hi can anyone help?
I have a button on sheet1 that sorts range M2:W on sheet2.
When I run the sort from sheet1 with screenupdating false and active sheet2 before sorting starts and active sheet1 at the end of the sort and screenupdating true
I get a sight flicker of the screen on sheet1 and when I go to sheet2 cell A1 is the active cell.
If I remove activate sheet2 and sheet1.
The sort still works fine without the activation of the sheets and there is no screen flickering but when I go to sheet2 the range that was sorted has been left highlighted like with selecting a range. This happens after the .Apply when I stepped through the code.
My question is how can I leave out the activation of the sheets but still keep A1 as the active cell on sheet2.
Regards
pwill
I have a button on sheet1 that sorts range M2:W on sheet2.
When I run the sort from sheet1 with screenupdating false and active sheet2 before sorting starts and active sheet1 at the end of the sort and screenupdating true
I get a sight flicker of the screen on sheet1 and when I go to sheet2 cell A1 is the active cell.
If I remove activate sheet2 and sheet1.
The sort still works fine without the activation of the sheets and there is no screen flickering but when I go to sheet2 the range that was sorted has been left highlighted like with selecting a range. This happens after the .Apply when I stepped through the code.
My question is how can I leave out the activation of the sheets but still keep A1 as the active cell on sheet2.
Regards
pwill
Last edited: