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

x
?
Solved

Reset Horizontal Scroll bar to the left (Excel 2007)

Posted on 2012-04-06
6
Medium Priority
?
1,569 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
[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
  • 2
  • 2
6 Comments
 
LVL 49

Accepted Solution

by:
Martin Liss earned 2000 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 49

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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 18

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 18

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Microsoft has changed the look and feel of Azure AD and Microsoft account sign-in pages so that you will have a more unified look and feel when moving between the two interfaces.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

604 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