Solved

Mimicking page up and page down

Posted on 2010-09-01
6
212 Views
Last Modified: 2012-05-10
How can I have 2 buttons on Excel sheet which does page up and page down? Thanks.
0
Comment
Question by:teeling
  • 3
  • 3
6 Comments
 
LVL 9

Accepted Solution

by:
javajws earned 500 total points
ID: 33583554
ActiveWindow.LargeScroll down:=1 (pagedown)
ActiveWindow.LargeScroll up:=1 (pageup)

More info at:
http://www.mrexcel.com/forum/showthread.php?t=14263
0
 

Author Comment

by:teeling
ID: 33583557
So I now have 2 buttons on the Excel sheet. The codes work fine. When I click on the pagedown button, the whole sheet scrolls down, both the pageup and pagedown button moves all the way up. How can I let these 2 buttons float with the scrolling? Thanks.
0
 
LVL 9

Expert Comment

by:javajws
ID: 33583618
One option is to put the button in the top row and Freeze Pane for the top row.
0
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.

 

Author Comment

by:teeling
ID: 33583633
just figured that out.. do u know how to put the triangle picture on a command button?
0
 
LVL 9

Expert Comment

by:javajws
ID: 33583697
If you use the "Command Button (ActiveX Control)" not the "Button (Form Control)", you can right click the button, select Properties and set the Picture Property to any picture you want to.

The "Button (Form Control)", does not have the ability to have a picture on it.  Only text.
0
 

Author Comment

by:teeling
ID: 33583832
Got it. Thank you very much :)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

789 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