Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2017, 06:33 AM
NoSparks NoSparks is offline Have a cell filled black when blank in dropdown list Windows 7 64bit Have a cell filled black when blank in dropdown list Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

I realize this is not posted under Excel Programming and this will require the file to be a macro enabled .xlsm, but I would remove the conditional formatting and use the Worksheet_Change event as it triggers when a selection is made in a validation drop down.


Code:
Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Count > 1 Or Target.Column <> 2 Then Exit Sub
If Not Intersect(Target, Me.Range("B12:B146")) Is Nothing Then
    If Target.Value = "" Then
        Target.Interior.ColorIndex = 1
    Else
        Target.Interior.ColorIndex = 0
    End If
End If

End Sub
Attached Files
File Type: xlsm Example_suggestion.xlsm (27.0 KB, 10 views)
Reply With Quote
  #2  
Old 04-06-2017, 12:44 AM
Aussie_81 Aussie_81 is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2016
Novice
Have a cell filled black when blank in dropdown list
 
Join Date: Apr 2017
Posts: 7
Aussie_81 is on a distinguished road
Default

Hey No Sparks,

Thankyou for the that.

That is exactly what I wanted.

Much appreciated.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have a cell filled black when blank in dropdown list Formulato say if cell is blank do this, if not blank do this. mbesspiata Excel 1 01-17-2015 05:02 AM
Have a cell filled black when blank in dropdown list Using word art in a table with a filled cell halfnite Word 5 10-07-2014 05:24 PM
Auto add a list cell if the last list cell is filled tasuooooo Excel 1 07-31-2012 08:40 PM
Change cell color everytime a value is selected in dropdown list angelica_gloria Excel 4 01-27-2012 06:47 PM
Forms: combination of a list and a text field to be filled in bart014 Word 0 04-23-2010 12:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:43 AM.


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