Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

777 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