Solved

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

Posted on 2003-11-05
3
934 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 250 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
MsgBox 2 61
How to debug this code 7 65
Crystal reports - Formula Field code need assistance with code 17 92
MS Access 03, TransferText, decimal places 8 85
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

733 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