+ Reply to Thread
Results 1 to 4 of 4

Formatting desired cells

  1. #1
    Registered User
    Join Date
    02-11-2007
    Posts
    2

    Formatting desired cells

    Used the below code for formatting the desired cells on changing the content of a particular cell. This worked fine only when I clicked on the cell after changing the cell content. I have used a list box to change the value of that particular cell. Trying to do a simple thing ...
    -When a cell's (say A2) value is changing from "one" to "two", the font color of the adjacent cell/any other cell (say B2) should change from red to green.

    anybody ? who can help


    Please Login or Register  to view this content.
    Last edited by VBA Noob; 02-11-2007 at 10:41 AM.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    I have some suggestions.

    1. Rather than using the selection change event, I would use the change event.

    2. Change all 'cel' references to 'Target'.

    3. I also included the LCase function so that the case doesn't have to match (i.e. "major", "Major", and "MAJOR" will all accomplish the same).

    Here is the revised code:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-11-2007
    Posts
    2

    grrrrrrrrrreat

    working superb .. thanks Jason

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Glad I could help.

+ 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