Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Scroll Into View

I have a set of macro's that select a predefined cell. Although the cells
are correctly selected I wish to make the newly selected cell move to the
top left hand corner of the window. The ActiveWindow.ScrollIntoView command
seems ideal, I can use the top, left, width and height properties of the
range object to indicate what I want at the top left.

However it doesnt seem to work, the command executes without errror, but the
cell is often placed only half way up the screen? Is there a margin or some
other setting I have ignored?

Grateful for any advice.

Thanks,

Peter M


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Scroll Into View

With Activewindow
.ScrollRow = ActiveCell.Row
.ScrollColumn = ActiveCell.Column
End With

--
Regards,
Tom Ogilvy


"Peter M" wrote in message
...
I have a set of macro's that select a predefined cell. Although the cells
are correctly selected I wish to make the newly selected cell move to the
top left hand corner of the window. The ActiveWindow.ScrollIntoView

command
seems ideal, I can use the top, left, width and height properties of the
range object to indicate what I want at the top left.

However it doesnt seem to work, the command executes without errror, but

the
cell is often placed only half way up the screen? Is there a margin or

some
other setting I have ignored?

Grateful for any advice.

Thanks,

Peter M




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
Column Headings Scroll out of view Grd Excel Discussion (Misc queries) 4 January 6th 08 11:21 PM
View, scroll and select a cell value from another Excel sheet? benb Excel Worksheet Functions 1 October 12th 06 05:48 AM
Scroll the screen view with the scroll bar avbs Excel Discussion (Misc queries) 1 June 25th 05 04:43 PM
Possible to view spreadsheets without scroll bars? londonchick Excel Discussion (Misc queries) 3 June 23rd 05 11:49 PM
Scroll selection into view raj Excel Programming 3 December 18th 03 04:10 PM


All times are GMT +1. The time now is 06:35 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"