Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2014, 11:12 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
Angry 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.
Attached Files
File Type: xlsm Task 1 P2.xlsm (125.0 KB, 12 views)
Reply With Quote
  #2  
Old 12-24-2014, 05:01 PM
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 Bump

Please can someone shed some light on this!

Thanks.
Reply With Quote
  #3  
Old 12-25-2014, 04:55 AM
thetraininglady thetraininglady is offline Excel VBA - Mandatory cells cannot stay blank? Windows 7 64bit Excel VBA - Mandatory cells cannot stay blank? Office 2010 32bit
Competent Performer
 
Join Date: Sep 2014
Location: Sydney, Australia
Posts: 214
thetraininglady is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 12-25-2014, 09:20 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 thetraininglady View Post
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.
Ahh even better as it is easier for me to do it! (Not very experienced with coding, I just thought it would be easier) .. Could you tell me what rule I would use for this or could you do it for me and send me the attachment again?

Thank you for your reply.
Reply With Quote
  #5  
Old 12-25-2014, 05:03 PM
thetraininglady thetraininglady is offline Excel VBA - Mandatory cells cannot stay blank? Windows 7 64bit Excel VBA - Mandatory cells cannot stay blank? Office 2010 32bit
Competent Performer
 
Join Date: Sep 2014
Location: Sydney, Australia
Posts: 214
thetraininglady is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 12-26-2014, 10:16 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 Tried :(

Quote:
Originally Posted by thetraininglady View Post
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.
Hi,

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.
Reply With Quote
  #7  
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, 11 views)
Reply With Quote
  #8  
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
  #9  
Old 12-28-2014, 07:11 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Excel VBA - Mandatory cells cannot stay blank? Windows 7 64bit Excel VBA - Mandatory cells cannot stay blank? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

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
Reply With Quote
  #10  
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



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 04:45 PM.


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