Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default key assignments

is there a way to assign copy and paste to a function key or some other key
combination?

i tired this and it didn't work, it still bring up the help pane.

Application.OnKey "^{F1}", "^{C}"

--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default key assignments

The second argument in Application.OnKey is the name of the macro you
want to run when the user presses the key in the first argument...

It doesn't allow you directly map one key onto another.


In article ,
"Gary Keramidas" <GKeramidasATmsn.com wrote:

is there a way to assign copy and paste to a function key or some other key
combination?

i tired this and it didn't work, it still bring up the help pane.

Application.OnKey "^{F1}", "^{C}"

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default key assignments

Is there a method in VBA that allows each macro to be scanned to determine if
it has an OnKey assignment?
--
Gary''s Student - gsnu200755


"JE McGimpsey" wrote:

The second argument in Application.OnKey is the name of the macro you
want to run when the user presses the key in the first argument...

It doesn't allow you directly map one key onto another.


In article ,
"Gary Keramidas" <GKeramidasATmsn.com wrote:

is there a way to assign copy and paste to a function key or some other key
combination?

i tired this and it didn't work, it still bring up the help pane.

Application.OnKey "^{F1}", "^{C}"


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default key assignments

Not AFAIK.

In article ,
Gary''s Student wrote:

Is there a method in VBA that allows each macro to be scanned to determine if
it has an OnKey assignment?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default key assignments

Getting Macro Short cut keys, by Ivan F Moala
"If you've ever wanted to get the short cut keys for your macros listed then here is an Addin that will help you get these."
http://www.xcelfiles.com/GetShortCutKeys.html

You might also be interested in
Shortcuts Found in Excel Menus
http://www.mvps.org/dmcritchie/excel/shortmenu.htm

Links to both of the above can be found on my page on shortcuts:
Shortcut Keys in Excel 2000 through Excel 2007
http://www.mvps.org/dmcritchie/excel/shortx2k.htm
--
HTH,
David McRitchie, Microsoft MVP -- Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm


"JE McGimpsey" wrote in message ...
Not AFAIK.

In article ,
Gary''s Student wrote:

Is there a method in VBA that allows each macro to be scanned to determine if
it has an OnKey assignment?



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default key assignments

thanks, wasn't sure about that.

--


Gary


"JE McGimpsey" wrote in message
...
The second argument in Application.OnKey is the name of the macro you
want to run when the user presses the key in the first argument...

It doesn't allow you directly map one key onto another.


In article ,
"Gary Keramidas" <GKeramidasATmsn.com wrote:

is there a way to assign copy and paste to a function key or some other key
combination?

i tired this and it didn't work, it still bring up the help pane.

Application.OnKey "^{F1}", "^{C}"



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default key assignments

hi
this has been built in since before windows.... before the mouse.
ctrl + x = cut
crtl + c = copy
crtl + V = Paste
see this site for more keyboard shortcuts....
http://www.cpearson.com/excel/KeyboardShortcuts.htm

Regards
FSt1

"Gary Keramidas" wrote:

is there a way to assign copy and paste to a function key or some other key
combination?

i tired this and it didn't work, it still bring up the help pane.

Application.OnKey "^{F1}", "^{C}"

--


Gary




  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default key assignments

i know that. i had a type. i don't want to use control f1, i just want to use f1

Application.OnKey "{F1}", "^{C}"

--


Gary


"FSt1" wrote in message
...
hi
this has been built in since before windows.... before the mouse.
ctrl + x = cut
crtl + c = copy
crtl + V = Paste
see this site for more keyboard shortcuts....
http://www.cpearson.com/excel/KeyboardShortcuts.htm

Regards
FSt1

"Gary Keramidas" wrote:

is there a way to assign copy and paste to a function key or some other key
combination?

i tired this and it didn't work, it still bring up the help pane.

Application.OnKey "^{F1}", "^{C}"

--


Gary






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
Buttons lose macro assignments Plum Excel Programming 2 October 25th 07 10:25 PM
random assignments of workload to set # of people Dawn Bjork Buzbee Excel Programming 2 February 21st 07 03:02 PM
Keyboard key assignments change... Jim Cone Excel Programming 4 January 27th 07 11:56 PM
List Shortcut Assignments Gary''s Student Excel Programming 3 October 18th 06 06:05 PM
Priority & Ranking Assignments BKing Excel Programming 3 May 18th 04 08:27 AM


All times are GMT +1. The time now is 11:25 PM.

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

About Us

"It's about Microsoft Excel"