+ Reply to Thread
Results 1 to 4 of 4

Colour a cell background if 'result' is entered by macro

  1. #1
    Registered User
    Join Date
    01-03-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    20

    Colour a cell background if 'result' is entered by macro

    Hi All,

    I have the following code that compares what is in a column in once sheet (with cetrain criteria) and look for it in another sheet and updates the values of what is says in the other sheet (again if it matches certain criteria. It is working very well, but if it puts a new result in the cell, I would like it to colour the cell green so that the users can see which values have been added. Logic says that the last line is the most important and the code to colour the result cell should go here, but I have tried many ways and it doesnt seem to colour anything!

    Please help.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Colour a cell background if 'result' is entered by macro

    is this code at new result to the cell?
    Please Login or Register  to view this content.
    then add another code below it
    Please Login or Register  to view this content.
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    Registered User
    Join Date
    01-03-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Colour a cell background if 'result' is entered by macro

    Thank you for your help.

    I have input the code below so the section in question looks like below;

    Please Login or Register  to view this content.
    However, I am getting a runtime error 424 'Object required'. Are you able to help?

  4. #4
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Colour a cell background if 'result' is entered by macro

    Please Login or Register  to view this content.
    Try this.

+ 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