?
Solved

Excel - Use ScrollIntoView to Position Active Cell in Top LH Corner

Posted on 2003-11-05
3
Medium Priority
?
948 Views
Last Modified: 2010-07-27
I'm not sure how to reposition the active cell to a position in the window using the scrollintoview method.

I can activate the cell using

Public AnalysisStats As Worksheet
Set AnalysisStats = wb.Worksheets.Item(1)
.
.
.
AnalysisStats.Cells(intRowNo, intColNo).Activate

But don't understand how to repostion it
0
Comment
Question by:MarkNethercott
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 750 total points
ID: 9688432
AnalysisStats.Cells(intRowNo, intColNo).Select
0
 

Author Comment

by:MarkNethercott
ID: 9688527
Does .select repostion the cell to the top LH corner?  And I'm not sure I understand the difference between .activate and .select
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9688649
Actually in this case, with one cell, there is no difference.  Select can select multiple cells, Activate only sets one cell as the active one.  

I always use Select, and not Activate.  I use Office XP, and both Select and Activate scroll the cell into view.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question