Quick Button to Automatically Enter Text?

cookeetree

Board Regular
Joined
Mar 2, 2015
Messages
52
G'day Excel Gods,

Is there a way of setting up a quick button (ie: CTRL+, ALT+, etc) to automatically enter regularly-used words or text?

I regularly have to enter L.C.L. or R.C.L. into worksheets and it's a slow task, even though I'm able to touch type.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Yep, doable.

Follow the steps from the screenshots to get it done on your computer.

1. Enable Developer Tools

right-click on any item of the ribbon and click "Customize the Ribbon..."
1695251571667.png

enable the Developer Ribbon
1695251707082.png
1695251733718.png


2. Record a Macro for each value/text you want to insert

on the Developer Tab click on "Record Macro"
1695251837291.png


enter the values like on the screenshot for "L.C.L." and press OK
1695252657118.png


now type "L.C.L." into any cell ant press Enter
1695252332985.png


stop the Macro Recorder
1695252093583.png


record another Macro for "R.C.L." with below values
1695252175281.png


type "R.C.L." into any cell and press Enter
1695252395026.png


Again, close the Macro Recorder

3. Finalize the Macros
Click on "Macros" on the Developer Tab
1695252532396.png

Now edit the macros you created. They are both stored in one workbook. Select any Macro and click "Edit"
1695252818671.png


Now this should open the VBA Editor and a window like on the screenshot will open (layout and colors may vary)
1695253015274.png


Now edit the VBA code of both macros so it is not hard-coded to insert your desired text into cell "A1" only
Clean up the code like in the example below
1695253168064.png


Save the workbook
1695253216446.png


4. Test the Shortcuts

Now you should be able to insert your desired text into any cell by pressing [Ctrl]+[L] or [Ctrl]+[R]


Please let me know if anything doesn't work or if you need further assistance.
 

Attachments

  • 1695251646921.png
    1695251646921.png
    62.7 KB · Views: 0
  • 1695251907823.png
    1695251907823.png
    8.7 KB · Views: 0
Upvote 0
Yep, doable.

Follow the steps from the screenshots to get it done on your computer.
....
Please let me know if anything doesn't work or if you need further assistance.
Thank you so much for your help, Pete. This works exactly as you expected it.

One smaaaaall thing I forgot to mention was that I need to enter the L.C.L. / R.C.L. into a cell that I'm already typing in. (ie: I need to enter something like "3.4m L.C.L.")

The code you gave me doesn't allow me to use the CTRL command whilst I'm actively entering data in to the cell.

Any chance you've got an alternative fix up your sleeve?

Cheers, Jason.
 
Upvote 0
I'm afraid that can't be done with plain Excel without some VBA coding.

But I found a very promising tool called ClipboardMaster.
ClipboardMaster - Features Overview

Maybe you could give it a try, it has AutoComplete features too.
 
Upvote 0

Forum statistics

Threads
1,215,149
Messages
6,123,311
Members
449,095
Latest member
Chestertim

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top