Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to program a key, say F4?

I have a huge spreadsheet in Excel 2002 and needs to jump from predefined
rows alot. I would like to know if there is a way to program a key, say F4,
so the cursor box will go all the way to the row 1 of the spread sheet.



Secondly, is there a way to program that key so it will jump to row 2000 and
then row 10000? Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to program a key, say F4?

Jonathan,

First, create macros that will do what you want to do. Then, assign those
macros to function keys using the OnKey method. E.g.,

Sub GoToRow1()
Application.Goto ActiveCell.EntireColumn.Cells(1, 1), True
End Sub

Sub InitKey()
Application.OnKey "{F4}","GoToRow1"
End Sub

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com




"Jonathan Lee" wrote in message
...
I have a huge spreadsheet in Excel 2002 and needs to jump from predefined
rows alot. I would like to know if there is a way to program a key, say

F4,
so the cursor box will go all the way to the row 1 of the spread sheet.



Secondly, is there a way to program that key so it will jump to row 2000

and
then row 10000? Thanks.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to program a key, say F4?

Thanks Chip. I'll try that.

Jon.
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
Is there a way to unload the loaded XLL file in Excel? Hi all, I amdebugging XLL link library using Visual C++. Everytime I rebuild the XLL, Ihave to close the whole Excel program and relaunch the Excel program again,and then load in the newly gene LunaMoon Excel Discussion (Misc queries) 0 July 28th 08 11:03 PM
Help with Program juanpablo Excel Worksheet Functions 3 April 13th 08 10:45 PM
get value from another program luu New Users to Excel 0 September 5th 07 03:22 PM
Which program? Dear Sir Excel Discussion (Misc queries) 4 January 14th 07 07:27 PM
IF () program Bee Excel Discussion (Misc queries) 1 June 5th 06 03:15 PM


All times are GMT +1. The time now is 11:44 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"