get focus

suxiaoli

New Member
Joined
Aug 23, 2011
Messages
3
In excel,add a button,when cursor in a cell ,click the button,the button is invaild,then I must click the other cell ,then click the button and it is valid.How to solvet this problem?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Welcome to the board!

I don't think you can get a button to do anythingwhile the cursor is in a cell. You have to press enter, or escape, or click somewhere, or do *something* to exit the cell BEFORE clicking the button. In the scenario you described, the *something* is clicking outside of the cell (on the button).
 
Upvote 0
Welcome to the board!

I don't think you can get a button to do anythingwhile the cursor is in a cell. You have to press enter, or escape, or click somewhere, or do *something* to exit the cell BEFORE clicking the button. In the scenario you described, the *something* is clicking outside of the cell (on the button).

Thank you for your help.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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