Dear friends,
Please suggest me a code to do the following:
In a single cell I want to increase/decrease the number using the keystrokes enter and shift + enter. Initially the cell b4 should contain 0.
1. If I hid the enter key then the number should increment one by one. Suppose I want this code in cell b4 then; if I hid the enter key first time then the number in cell b4 should be 1, second time 2, third time 3, fourth time 4 and so on endlessly.
2. If I hid the key combination ‘shift + enter’ then the number should be decrease one by one till 0. If the cell contains 0 then the shift + enter stroke should not have any effect and display a pop up message ‘Hid enter key to increment the number’.
Suppose there is 4 in cell b4 and I hid a key combination shift + enter first time then then the number should be decrease by 1 showing 3 in cell b4, second time 2, third time 1, fourth time 0 and finally if it’s contains 0 and I hid shift + enter a pop message should display and no any effect in cell b4.
Any help will be highly appreciated.
Thanking you in anticipation.
Bookmarks