Accept cell values with button click and without 'Enter' or 'Shift'

davidam

Active Member
Joined
May 28, 2010
Messages
497
Office Version
  1. 2021
Platform
  1. Windows
If I enter a value into a cell, I have to hit Enter or Shift before the program will accept a new value into the active cell. Is there a way to make it so that a cell will accept a new value with the click of any button and without the Enter or Shift key?
Thanks,
David
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
What do you mean by "any button"?

By the way Shift key doesn't confirm the entry of a value into a cell.
 
Upvote 0
What do you mean by "what do you mean"? It's next to Alt:-

a_anykey.jpg
 
Upvote 0
Sorry for creating this confusion. What I meant was: I want to be able to click a command button or a form button and have this exit me from edit mode.
 
Upvote 0
PS...my question is not an April fools joke...unlike Ruddles answer!!
 
Upvote 0
A command button on a worksheet, no, because you can't call a VBA procedure whilst in Edit mode.

If you're entering data into a text box on a user form, then yes - if you click a command button whilst entering data, the button will take focus, ending the data entry.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,152
Members
452,891
Latest member
JUSTOUTOFMYREACH

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