Solved

Reset Horizontal Scroll bar to the left (Excel 2007)

Posted on 2012-04-06
6
1,344 Views
Last Modified: 2012-04-06
Hello All,
I have a question about a vba code : Scrollbar to the left
Clicking on reset button brings the bottom horizontal scrollbar to the very left. How can a vba code be inserted into that reset button so that it does that every time the button is clicked. The reasoning the number is columns is very big and scrolling from right to left at the end of every line is head ache.
Thank you

R
scrollbar.xlsx
0
Comment
Question by:Rayne
  • 2
  • 2
  • 2
6 Comments
 
LVL 46

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 37817742
Put this in a button or macro.

ActiveWindow.ScrollColumn = 1
0
 

Author Comment

by:Rayne
ID: 37817765
thank you MartinLiss
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 37817767
You're welcome and I'm glad I was able to help.

Marty - MVP 2009 to 2012
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 17

Expert Comment

by:xtermie
ID: 37817792
I haven't worked with it at all, but Stephen Lebans has a solution here that
includes support for horizontal scrollbars:

http://www.lebans.com/setgetsb.htm
SetGetSB.zip is a database containing functions to allow
a user to Set or Get the current position of a ScrollBar Thumb
for a Form.
0
 
LVL 17

Expert Comment

by:xtermie
ID: 37817798
Looking at your example, it could be as simple as this however - add this code on the CommandClick of the button

Worksheets("Sheet1").Activate
ActiveWindow.ScrollColumn = 3 'number of left most column you want to be visible
0
 

Author Comment

by:Rayne
ID: 37817812
Thanks everyone :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

920 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

15 Experts available now in Live!

Get 1:1 Help Now