Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Undesirable sorting behavior

Not really a development question, but I was writing a macro that does a bunch of sorting, and I was wondering if there is a setting or a way to prevent Excel from jumping to the top of the sheet every time I do a sort? It's rather annoying.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 538
Default Undesirable sorting behavior

Map Man wrote:

Not really a development question, but I was writing a macro that does a
bunch of sorting, and I was wondering if there is a setting or a way to
prevent Excel from jumping to the top of the sheet every time I do a
sort? It's rather annoying.


Not that I know of, but you could just move the view back to where it was:

vrow = ActiveWindow.VisibleRange.Row
vcol = ActiveWindow.VisibleRange.Column
'your sorting code here, then...
rowdif = vrow - ActiveWindow.VisibleRange.Row
coldif = vcol - ActiveWindow.VisibleRange.Column
ActiveWindow.SmallScroll Down:=rowdif, ToRight:=coldif

--
Were that all people were of as true of purpose as yourself.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
odd behavior Rich[_8_] Excel Discussion (Misc queries) 2 November 20th 08 10:02 PM
Odd behavior Otto Moehrbach Excel Programming 4 October 23rd 07 08:03 PM
Alt+E Behavior Sam Chambers Excel Discussion (Misc queries) 3 June 8th 07 04:23 PM
Odd Tab behavior Jim Thomlinson Excel Programming 1 July 11th 06 05:24 AM
Weird Sorting Behavior Jim Thomlinson[_3_] Excel Programming 1 May 4th 05 04:42 AM


All times are GMT +1. The time now is 03:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"