Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Can I start a macro using a # key?

Hi all
can anyone help me with starting a macro called "gsw"
by using the # or | or ~ key?
The reason being I am trying to activate this macro
by barcode scan and I cannot print a barcode using
ctrl + X

TIA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can I start a macro using a # key?

Have you looked at the onkey method in VBA help?

--
Regards,
Tom Ogilvy

"Ftca" wrote in message
...
Hi all
can anyone help me with starting a macro called "gsw"
by using the # or | or ~ key?
The reason being I am trying to activate this macro
by barcode scan and I cannot print a barcode using
ctrl + X

TIA




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Can I start a macro using a # key?

"Tom Ogilvy" wrote in message
...
Have you looked at the onkey method in VBA help?



As usual Tom
you've steered me in the right direction

a quick google groups search and............

FWIW
I used this method
from vb (shift F11)
insert
module
pasted in

Sub keytrap()
Application.OnKey "{TAB}", "gsw"
End Sub

(seemed your name was in this post/thread too)

now a simple step to subst TAB with one of my prefered choices
and "Bob's yer Uncle!"

Thanks Tom



--
Regards,
Tom Ogilvy

"Ftca" wrote in message
...
Hi all
can anyone help me with starting a macro called "gsw"
by using the # or | or ~ key?
The reason being I am trying to activate this macro
by barcode scan and I cannot print a barcode using
ctrl + X

TIA






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
How do you start a Macro? Michael New Users to Excel 7 February 27th 10 04:55 PM
Sub Macro vrs Function Macro Auto Start Pat Excel Discussion (Misc queries) 7 June 6th 07 09:53 PM
How to start a Macro Rick_T Excel Discussion (Misc queries) 1 December 28th 06 04:50 PM
Macro Start zephyr Excel Discussion (Misc queries) 0 November 13th 06 05:01 PM
start a macro johnT Excel Worksheet Functions 2 March 6th 05 06:43 PM


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