Solved

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

Posted on 2003-11-05
3
910 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now