ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Store data JUST entered in Activecell after clicking command button on worksheet (https://www.excelbanter.com/excel-programming/371178-store-data-just-entered-activecell-after-clicking-command-button-worksheet.html)

[email protected]

Store data JUST entered in Activecell after clicking command button on worksheet
 
Scenario : the user IS entering data in a cell on the active worksheet
and before hitting the enter ley or otherwise storing the data he typed
otherwise (by moving to another cell), he clicks on a command button on
the worksheet.
How can I make sure the data he (obviously) wanted to be entered ARE
actually stored in the cell and can be used in the macro assigned to
the button


NickHK

Store data JUST entered in Activecell after clicking command button on worksheet
 
In Edit Mode (when the user IS entering data in a cell), no code can run. So
the user cannot click on a button.
You need to change your approach.

NickHK

wrote in message
ups.com...
Scenario : the user IS entering data in a cell on the active worksheet
and before hitting the enter ley or otherwise storing the data he typed
otherwise (by moving to another cell), he clicks on a command button on
the worksheet.
How can I make sure the data he (obviously) wanted to be entered ARE
actually stored in the cell and can be used in the macro assigned to
the button





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com