Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
assign short-cut keys in EXEL | Excel Discussion (Misc queries) | |||
User defined functions without using VBA. | Excel Worksheet Functions | |||
"assign macro" not an option from short menu | Excel Discussion (Misc queries) | |||
don't allow users to assign the cntrl+s as a short cut for macro | Excel Worksheet Functions | |||
"User-defined type not defined" message in Excel | Excel Discussion (Misc queries) |