Solved

Reset Horizontal Scroll bar to the left (Excel 2007)

Posted on 2012-04-06
6
1,365 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Find and Replace Function not working in Excel 13 46
Left trim cells in column A Excel vba 2 32
Msbbox Notice (4 days) 27 58
Excel error  #DIV/0! 7 18
Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

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