+ Reply to Thread
Results 1 to 3 of 3

Excel macro - color comparison 2 doc

Hybrid View

  1. #1
    Registered User
    Join Date
    09-26-2011
    Location
    Prague, Czech
    MS-Off Ver
    Excel 2003
    Posts
    3

    Excel macro - color comparison 2 doc

    Hi all experts via Excel

    Please can someone advise me how to create a macro to the next case?

    I have 2 documents. The documents are numbers (prices). If user push the button in 2 doc (macro), function will compares a cells and when it finds a difference function will colour this cells. Position of the cells are not changed.

    Document 1 does not change.
    Document 2 is open to change, there is macro.

    If the value in these cells in the doc 2 < doc 1 / cells in doc 2 are marked in red.
    If the value in these cells in the doc 2 = doc 1 / cells in doc 2 are marked in orange.
    If the value in these cells in the doc 2 > doc 1 / cells in doc 2 are marked in green.
    If the value in these cells in the doc 2 = 0 (empty cell) do nothing.

    Thank you all for your help.
    Last edited by Zd3n3k; 09-26-2011 at 08:25 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Excel macro - color comparison 2 doc

    Are you talking about different workbooks or different sheets in one workbook?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-26-2011
    Location
    Prague, Czech
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel macro - color comparison 2 doc

    Different workbooks. Cells do not change. Cell contents is changing.

+ 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