I need VBA code, if A1 is empty, when I try to enter in cell A2, error message should appear like Enter A1 first.
Thanks...
I need VBA code, if A1 is empty, when I try to enter in cell A2, error message should appear like Enter A1 first.
Thanks...
Last edited by AliGW; 02-25-2020 at 09:18 AM.
In the VBA editor, on the left you will see the excel objects. Double-click on the sheet name that you want to be affected, and then paste this code:
Please Login or Register to view this content.
Please help by:
Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know
There are 10 kinds of people in this world... those who understand binary, and those who don't.
Thanks Mr. Arkadi for your help. But there is debug Error.
Attachment 664427
Last edited by AliGW; 02-25-2020 at 09:18 AM. Reason: Please don't quote unnecessarily!
Administrative Note:
Welcome to the forum.
We would very much like to help you with your query, however the thread title does not really convey what your request is about.
Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).
Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.
(Note: this change is not optional. As you are new, I have done it for you this time.)
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
HAJANISHA, I can't see that image... so I don't know what the error is
Run-time error '1004':
Method 'Undo' of object'_Application'failed
This is the error message
Not sure why without looking at the file, but try changing "Application.Undo" to Target.Value = vbNullString
Thanks A lot. works perfectly.
That's great Please remember to mark the thread as solved if you are satisfied? Thanks!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks