Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-26-2014, 06:46 PM
Bruno Campanini Bruno Campanini is offline Excel VBA - Mandatory cells cannot stay blank? Windows 8 Excel VBA - Mandatory cells cannot stay blank? Office 2013
Novice
 
Join Date: Nov 2014
Posts: 19
Bruno Campanini is on a distinguished road
Default

Quote:
Originally Posted by hussnainh8 View Post
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.
The small routine I added (Private Sub Workbook_SheetChange())
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
Attached Files
File Type: xlsm Task 1 P2.xlsm (123.0 KB, 13 views)
Reply With Quote
  #2  
Old 12-28-2014, 05:56 AM
hussnainh8 hussnainh8 is offline Excel VBA - Mandatory cells cannot stay blank? Windows 7 64bit Excel VBA - Mandatory cells cannot stay blank? Office 2010 64bit
Novice
Excel VBA - Mandatory cells cannot stay blank?
 
Join Date: Dec 2014
Posts: 5
hussnainh8 is on a distinguished road
Default

Quote:
Originally Posted by Bruno Campanini View Post
The small routine I added (Private Sub Workbook_SheetChange())
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
Hi,

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.
Reply With Quote
  #3  
Old 12-28-2014, 09:40 AM
Bruno Campanini Bruno Campanini is offline Excel VBA - Mandatory cells cannot stay blank? Windows 8 Excel VBA - Mandatory cells cannot stay blank? Office 2013
Novice
 
Join Date: Nov 2014
Posts: 19
Bruno Campanini is on a distinguished road
Default

Quote:
Originally Posted by hussnainh8 View Post
Hi,

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.
Sorry, we are speaking two different languages.

Bruno
Reply With Quote
Reply

Thread Tools
Display Modes


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
Excel VBA - Mandatory cells cannot stay blank? www....com does not stay active in excel 2010 waltdisneypixar Excel 6 06-11-2012 12:55 AM
Excel VBA - Mandatory cells cannot stay blank? Selecting blank cells in criteria apolloman Excel 6 08-24-2011 05:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft