+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting is not working

Hybrid View

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Chennai,India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Thumbs down Conditional Formatting is not working

    I attached a spreadsheet that I'm playing with conditional formatting. It all work fine like I want it except that the conditional formatting does not apply when the cells are copied through the Test macro.If I enter a specific values by hand e.g. D15 = 95 and D16 = 1 then it formats it like I wanted it. But if I press the Macro button then the formatting does not work.

    Would you be able to have a quick look for me? What's the trick?
    Please help me.
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Conditional Formatting is not working

    This is not the best way, but try
    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim r As Range
    For Each r In Target.Cells
        With r
    '... your code here
        End With
    Next
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1