Hi,
How to insert in the macro below a check that if a user enter value 20 or higher then a message box and clear contents.
Thanks
Please Login or Register to view this content.
Hi,
How to insert in the macro below a check that if a user enter value 20 or higher then a message box and clear contents.
Thanks
Please Login or Register to view this content.
Please click the * Add Reputation if this helps
If solved remember to mark Thread as solved
"I'm glad to help and this is not meant to sound smart, but either you have super-human vision to see all those controls cleared one by one with the code I posted, or your computer is really slow."
Where are they entering the value you want checked? Into the following cell?check that if a user enter value 20 or higher then a message box and clear contents
Please Login or Register to view this content.
I'm interested in starting a career working with VBA, if anyone knows of any opportunities!
Hi walruseggman,
Upload workbook with complete code (Module1).Entering the value in row 12 (B12:K12).
Thanks
Please Login or Register to view this content.
Can this help?
Please Login or Register to view this content.
Data Validation will do this without any VBA.
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
@JOHN, works perfectly, Thanks
@mikerickson, I've tried data validation but it doesn't work coz I'm using macro to enter value, It will only work if you enter the value manually.
You're welcome. Glad to help out and thanks for the feedback.
The OP code shows the suspect value already in the cell. If the value is being put in the cell with VBA, it might be better to do the validation before actually putting it into a cell. VBA usually precludes UnDo and you might want to tell the user that something is wrong before they lose the data that was previously in the cell.
Hi JOHN,
Sorry to bother you again but I want to add another range (E5:N5), but this time not greater than 2240 with different message.
Thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks