Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Navigation Buttons
I am trying to create navigation buttons ie........Up,Down,Left,Right. How can I tell (in vba)when i am at the very top of the page or at the very bottom. The buttons work fine but when i get to the top the buttons want to keep moving up everytime I press the "UP" button. If there was some command that said "Yes you are at the top" or "Yes you are at the bottom" then I could do an If Then statement to correct this
Thanks dcstech |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Navigation Buttons
If by "at the top" you mean that row 1 is visible then you can check that
with: If ActiveWindow.ScrollRow = 1 Then ... It could get more complicated though if say row 1 is hidden. -- Jim Rech Excel MVP "dcstech" wrote in message ... |I am trying to create navigation buttons ie........Up,Down,Left,Right. How can I tell (in vba)when i am at the very top of the page or at the very bottom. The buttons work fine but when i get to the top the buttons want to keep moving up everytime I press the "UP" button. If there was some command that said "Yes you are at the top" or "Yes you are at the bottom" then I could do an If Then statement to correct this. | | Thanks, | dcstech |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Navigation buttons in Excel 2007 | Excel Discussion (Misc queries) | |||
have toggle buttons but everytime print preview buttons move | Excel Discussion (Misc queries) | |||
Creating navigation buttons on a worksheet | New Users to Excel | |||
Navigation Buttons not working (HTML) | Excel Discussion (Misc queries) | |||
Looking for sample of VCR or Navigation buttons for use on UserForms | Excel Programming |