ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Changing sheets after the DeActivate Event. (https://www.excelbanter.com/excel-discussion-misc-queries/194349-changing-sheets-after-deactivate-event.html)

Richard

Changing sheets after the DeActivate Event.
 
MS XP, Excel 2003
I am using the DeActivate event to sort the page Im currently on. When I
select any other sheet the present sheet deactivates and sorts properly.
The problem is when the sort completes it returns to the page that was
sorted and not the one selected B/4 the present sheet was deactivated.
How can I store and select the page I want when the sort is completed?

Thanks in advance.

--
Richard

Jim Rech

Changing sheets after the DeActivate Event.
 
There is probably something in your sort code that activates the deactivated
sheet. That's what you should correct. Written properly there is usually
no need for the sheet to be acted on to be active.

--
Jim
"Richard" wrote in message
...
| MS XP, Excel 2003
| I am using the DeActivate event to sort the page I'm currently on. When I
| select any other sheet the present sheet deactivates and sorts properly.
| The problem is when the sort completes it returns to the page that was
| sorted and not the one selected B/4 the present sheet was deactivated.
| How can I store and select the page I want when the sort is completed?
|
| Thanks in advance.
|
| --
| Richard



Dave Peterson

Changing sheets after the DeActivate Event.
 
Just a curiosity question...

Is there a reason you don't use the _activate event?

And to add to Jim's response...

If you really want to use the _deactivate event, you may want to post the code
if you can't get it working.

Richard wrote:

MS XP, Excel 2003
I am using the DeActivate event to sort the page Im currently on. When I
select any other sheet the present sheet deactivates and sorts properly.
The problem is when the sort completes it returns to the page that was
sorted and not the one selected B/4 the present sheet was deactivated.
How can I store and select the page I want when the sort is completed?

Thanks in advance.

--
Richard


--

Dave Peterson


All times are GMT +1. The time now is 11:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com