Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Apply a Macro to a FunctionKey... (again, but with correct email address)

Hi

My problem is I would like to run a macro called "five" when I hit the F5
key... (just the key, without Ctrl or Alt key). Excel
Does someone would own the code I'm looking for ?

Thank you VERY much for your help, I look for a while on the web but don't
find anything.

Frenchie,
doo



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Apply a Macro to a FunctionKey... (again, but with correct email address)

Hi Doo

Look in the VBA help for Application.Onkey


--
Regards Ron de Bruin
http://www.rondebruin.nl


"doo" wrote in message ...
Hi

My problem is I would like to run a macro called "five" when I hit the F5
key... (just the key, without Ctrl or Alt key). Excel
Does someone would own the code I'm looking for ?

Thank you VERY much for your help, I look for a while on the web but don't
find anything.

Frenchie,
doo





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Apply a Macro to a FunctionKey... (again, but with correct email address)

Hello

Thank you for your info, but my problem is that I don't understand at all
VBA ... ;-(
(where do I write it ? wich syntax ? what is a proc ? etc...)

But however thanks a lot for the info, for sure it is what I'm looking for !

Thanxxxs
Frenchie
doo



"Ron de Bruin" a écrit dans le message de
...
Hi Doo

Look in the VBA help for Application.Onkey


--
Regards Ron de Bruin
http://www.rondebruin.nl


"doo" wrote in message

...
Hi

My problem is I would like to run a macro called "five" when I hit the

F5
key... (just the key, without Ctrl or Alt key). Excel
Does someone would own the code I'm looking for ?

Thank you VERY much for your help, I look for a while on the web but

don't
find anything.

Frenchie,
doo







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Apply a Macro to a FunctionKey... (again, but with correct email address)

Hi doo

You can put a macro like this in a module in the workbook and assign it to a shortcut
(F5 in this example)

Sub test()
MsgBox "Hi"
End Sub

This in a the Thisworkbook module

Private Sub Workbook_Activate()
Application.OnKey "{F5}", "test"
End Sub

Private Sub Workbook_Deactivate()
Application.OnKey "{F5}"
End Sub



--
Regards Ron de Bruin
http://www.rondebruin.nl


"doo" wrote in message ...
Hello

Thank you for your info, but my problem is that I don't understand at all
VBA ... ;-(
(where do I write it ? wich syntax ? what is a proc ? etc...)

But however thanks a lot for the info, for sure it is what I'm looking for !

Thanxxxs
Frenchie
doo



"Ron de Bruin" a écrit dans le message de
...
Hi Doo

Look in the VBA help for Application.Onkey


--
Regards Ron de Bruin
http://www.rondebruin.nl


"doo" wrote in message

...
Hi

My problem is I would like to run a macro called "five" when I hit the

F5
key... (just the key, without Ctrl or Alt key). Excel
Does someone would own the code I'm looking for ?

Thank you VERY much for your help, I look for a while on the web but

don't
find anything.

Frenchie,
doo








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
can I put an email address in a macro ? Roger[_2_] New Users to Excel 3 November 6th 09 08:04 AM
Macro to email to address in cell reference hnyb1 Excel Discussion (Misc queries) 1 August 4th 09 10:39 PM
How can I create a macro for my email address? filing downloaded email stationery Excel Discussion (Misc queries) 2 November 20th 08 04:45 PM
can I copy a column of email addresses, paste into email address? Lizizfree New Users to Excel 4 July 20th 06 10:03 PM
Apply a Macro to a FunctionKey... doo[_2_] Excel Programming 1 July 7th 04 05:43 PM


All times are GMT +1. The time now is 08:57 PM.

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"