#1
|
|||
|
|||
Excel VBA - Mandatory cells cannot stay blank?
Hi,
So I have tried my best to use VBA to write a code which shows a message when cells D9 to D16 cannot stay empty. This is for the sheet "order processing screen" How can I do this? I tried my best but cannot seem to get it working. Any help? I have attached the workbook with this thread if anyone wants to open it up and write the code for me, feel free to do that as it has given me a headache now.. The password for the Excel workbook is "hussnain" no capitals etc. You have to unprotect the work sheet to make changes to it. Please help anyone!! Thank you. |
#2
|
|||
|
|||
Bump
Please can someone shed some light on this!
Thanks. |
#3
|
|||
|
|||
I'm unsure about VBA coding for this but you could use Data Validation to create this effect. Just thought I'd throw the idea out there.
|
#4
|
|||
|
|||
Quote:
Thank you for your reply. |
#5
|
|||
|
|||
I am home with a sick child today so i just googled and found this article on Data Validation which might assist. http://office.microsoft.com/en-au/ex...600.aspx#BM4_2
Take a look at the info on "Restrict data entry to a whole number within limits". If you are still stuck I can try to take a closer look at this over the weekend and possibly put something together for you. |
#6
|
|||
|
|||
Tried :(
Quote:
Sorry to hear about your child, hope they get better.. I have tried data validation and still cannot seem to get it working, I dont know if I am missing something out or what but it just will not work Please go through the excel file I attached and do it for me whenever you are free, will be much appreciated. |
#7
|
|||
|
|||
Quote:
works that way: every time you change a value in a A:J range of the sheet, the code checks the D cell for zero value and sends a message. It's not practical: may be you want D cell to be checked after completion of A:C range, or something like that. You didn't give enough info... Bruno |
#8
|
|||
|
|||
Quote:
Thanks for the help... I want Excel to show a error message if cells D9 till D16 are "Empty". A simple error message which says "Please fill empty cell in" would be fine.. I did already state this in my first message. Thank You. |
#9
|
||||
|
||||
Hi guys
no mod being around, it would be nice if you didn't quote whole posts unnecessarily. They are just clutter and make the thread very long. Thx
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#10
|
|||
|
|||
Quote:
Bruno |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with Subtotal(103, ) formula and blank cells | zhl203 | Excel | 1 | 07-30-2014 03:40 PM |
embed excel cells in Word, format won't stay | bsapaka | Word | 1 | 01-26-2014 01:12 AM |
Join cells together separated by ; when some are blank | leemoreau | Excel | 3 | 11-03-2013 11:22 AM |
www....com does not stay active in excel 2010 | waltdisneypixar | Excel | 6 | 06-11-2012 12:55 AM |
Selecting blank cells in criteria | apolloman | Excel | 6 | 08-24-2011 05:38 AM |