+ Reply to Thread
Results 1 to 4 of 4

Change colour of data when changed

  1. #1
    Martin ©¿©¬ @REMOVETHIS.plus.com
    Guest

    Change colour of data when changed

    Hello
    I have been using the code below in my worksheets to change the colour
    of updated/edited data.
    Now it doesn't seem to be working

    Any ideas why?

    Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

    End Sub

    Private Sub Worksheet_Change(ByVal Target As Range)
    Target.Interior.ColorIndex = 8
    End Sub

    Martin
    ©¿©¬

  2. #2
    Ardus Petus
    Guest

    Re: Change colour of data when changed

    In VBE, Immediate window (Ctrl-G), type:
    ?application.enebleevents

    If answer is false, type:
    application.enebleevents=true

    HTH
    --
    AP

    <Martin ©¿©¬ @REMOVETHIS.plus.com> a écrit dans le message de news:
    [email protected]...
    > Hello
    > I have been using the code below in my worksheets to change the colour
    > of updated/edited data.
    > Now it doesn't seem to be working
    >
    > Any ideas why?
    >
    > Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
    >
    > End Sub
    >
    > Private Sub Worksheet_Change(ByVal Target As Range)
    > Target.Interior.ColorIndex = 8
    > End Sub
    >
    > Martin
    > ©¿©¬




  3. #3
    Bob Phillips
    Guest

    Re: Change colour of data when changed

    Maybe events are turned off. Go to the immediate window in the VBIDE and
    type

    Application.EnableEvents = True

    --
    HTH

    Bob Phillips

    (remove xxx from email address if mailing direct)

    <Martin ©¿©¬ @REMOVETHIS.plus.com> wrote in message
    news:[email protected]...
    > Hello
    > I have been using the code below in my worksheets to change the colour
    > of updated/edited data.
    > Now it doesn't seem to be working
    >
    > Any ideas why?
    >
    > Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
    >
    > End Sub
    >
    > Private Sub Worksheet_Change(ByVal Target As Range)
    > Target.Interior.ColorIndex = 8
    > End Sub
    >
    > Martin
    > ©¿©¬




  4. #4
    Martin ©¿©¬ @REMOVETHIS.plus.com
    Guest

    Re: Change colour of data when changed

    Thanks for your replies Ardus & Bob

    I've found my problem
    Enable macros was turned off, when I turned them back on my colour
    changes began working again - happy days!!

    Regards
    Martin
    ©¿©¬

+ 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