+ Reply to Thread
Results 1 to 2 of 2

changing bacground colour if formula altered

  1. #1
    Registered User
    Join Date
    01-12-2005
    Posts
    13

    changing bacground colour if formula altered

    Hello,
    I have used the scrpit below to change the background colour of any cell contacts that have been changed. I would like to adapt it to only change cells when the user changes a formula inside the cells.

    I do not want to protect the cell contents

    Private Sub Worksheet_Change(ByVal Target As Range)
    Target.Interior.ColorIndex = 37
    Target.Interior.Pattern = xlSolid
    End Sub

  2. #2
    Bob Phillips
    Guest

    Re: changing bacground colour if formula altered

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.HasFormula Then
    Target.Interior.ColorIndex = 37
    Target.Interior.Pattern = xlSolid
    End If
    End Sub


    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "st120869" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hello,
    > I have used the scrpit below to change the background colour of any
    > cell contacts that have been changed. I would like to adapt it to only
    > change cells when the user changes a formula inside the cells.
    >
    > I do not want to protect the cell contents
    >
    > Private Sub Worksheet_Change(ByVal Target As Range)
    > Target.Interior.ColorIndex = 37
    > Target.Interior.Pattern = xlSolid
    > End Sub
    >
    >
    > --
    > st120869
    > ------------------------------------------------------------------------
    > st120869's Profile:

    http://www.excelforum.com/member.php...o&userid=18330
    > View this thread: http://www.excelforum.com/showthread...hreadid=496630
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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