Results 1 to 3 of 3

Code for reverting cell format back to the original one

Threaded View

  1. #1
    Registered User
    Join Date
    04-30-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    6

    Code for reverting cell format back to the original one

    Here's the scenario.

    If I change the value of a cell, the cell changes color. -- I am using the following code for this:
    Private Sub Worksheet_Change(ByVal Target As Range)
             Target.Interior.ColorIndex = 19
    End Sub
    Is there any way that the cell reverts back to its original formatting when I change it back to its original value?

    Eg.

    12345 --> 67890
    67890 --> 12345
    Last edited by kairab; 03-11-2013 at 09:42 AM.

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