Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2003-11-05
3
Medium Priority
?
962 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…
Suggested Courses

610 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