In my workbook I have a list of hyper links to different areas on the same sheet, I have inserted a floating command button and would like it to return the cursor to the top of the hyperlink list when clicked on. I have little experience with VBA and would appreciate any help that could be provided.
Thanks.
Last edited by Tobre; 10-20-2010 at 03:29 PM.
Hello Tobre,
Welcome to the Forum!
The code below will place "Z30" in the top left corner. Change this to the cell you will be using.
With Range("Z30") ActiveWindow.ScrollRow = .Row ActiveWindow.ScrollColumn = .Column End With
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
That is a great trick.
Thanks for the help.
or use Excel's buitlin facility:
Sub snb() Application.Goto sheets(1).Range("Z30"),True End sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks