Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigation buttons in Excel 2007 I Teach Excel Discussion (Misc queries) 1 June 5th 10 03:32 PM
have toggle buttons but everytime print preview buttons move TinSandhu Excel Discussion (Misc queries) 1 October 11th 06 02:57 PM
Creating navigation buttons on a worksheet ryan_dude New Users to Excel 2 December 20th 05 05:15 PM
Navigation Buttons not working (HTML) Mariusz K Excel Discussion (Misc queries) 0 October 18th 05 04:37 PM
Looking for sample of VCR or Navigation buttons for use on UserForms Phillips[_3_] Excel Programming 3 January 9th 04 09:15 AM


All times are GMT +1. The time now is 02:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"