Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default How to assign a short cut key for user defined word?

Please inform me how to assign a single desired key, when pressed to input
long data.

For eg:
Assign key "A" to input 377.88998774, instead of typing in the cells several
times
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default How to assign a short cut key for user defined word?

Insert | Name | Define
Name: A
Refers to: 377.88998774

In cells use as in:
=A
=2*A-25
etc
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Siva" wrote in message
...
Please inform me how to assign a single desired key, when pressed to input
long data.

For eg:
Assign key "A" to input 377.88998774, instead of typing in the cells
several
times



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default How to assign a short cut key for user defined word?

You can do that during the process of recording a new macro.


Tools | Macro | Record New Macro
In the dialog that appears you can assign a name to the macro and choose
what key to press in combination with the [Ctrl] key to quickly run that
macro in the future.
Once you've done that, decide if you want this to be available in the
workbook you are working in only, or if you want it available all the time.
Click OK and perform the operation: simply type the value into a cell and
press the [Enter] key, then click the [Stop Recording] button (or if you
don't see that, use Tools | Macro | Stop Recording).

You'll probably need to modify the code generated a little bit because when
you pressed the [Enter] key during the recording (you had to, trust me) the
macro recorded which cell was selected after entering the value and that
became part of the macro. Easy way to edit it:
Tools | Macro | Macros
Highlight the macro you recorded and click the [Edit] button.

In the code you'll probably see something like:

ActiveCell.FormulaR1C1 = 377.88998774
Range("A2").Select

Simply delete the Range("A2").Select line of the code and close the VB
Editor. Now it will work to place the value in what ever cell you have
selected when you call the macro without always jumping back to cell "A2" (or
whatever cell reference was in the macro you recorded).


"Siva" wrote:

Please inform me how to assign a single desired key, when pressed to input
long data.

For eg:
Assign key "A" to input 377.88998774, instead of typing in the cells several
times

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to assign a short cut key for user defined word?

Maybe you can use Tools|AutoCorrect Options|AutoCorrect tab

But use a nice unique value to be replaced with your number:

Say ..a with 377.88998774

Be aware that the autocorrect list is used by all of the office suite of
programs (Word, excel, PPT, ...)

Siva wrote:

Please inform me how to assign a single desired key, when pressed to input
long data.

For eg:
Assign key "A" to input 377.88998774, instead of typing in the cells several
times


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default How to assign a short cut key for user defined word?

If you mean to be used in a formula then Define the name A as 377.88998774.
If you mean entered in to a cell on its own then use the Macro:

Sub EnterIt()
ActiveCell.Value = 377.88998774
End Sub

and asign the shortcut key you want to use.

Post back if you need further help.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Siva" wrote in message
...
Please inform me how to assign a single desired key, when pressed to input
long data.

For eg:
Assign key "A" to input 377.88998774, instead of typing in the cells
several
times



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
assign short-cut keys in EXEL EXCELLENT TO ANGRY! Excel Discussion (Misc queries) 0 July 25th 06 11:41 PM
User defined functions without using VBA. [email protected] Excel Worksheet Functions 0 June 13th 06 05:44 PM
"assign macro" not an option from short menu SteveJ Excel Discussion (Misc queries) 2 May 18th 06 05:55 PM
don't allow users to assign the cntrl+s as a short cut for macro Sreenath Excel Worksheet Functions 1 November 5th 05 06:09 AM
"User-defined type not defined" message in Excel RW1946 Excel Discussion (Misc queries) 0 August 31st 05 12:14 PM


All times are GMT +1. The time now is 04:19 AM.

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"