+ Reply to Thread
Results 1 to 7 of 7

Vlookup with front color together

  1. #1
    Registered User
    Join Date
    05-02-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    4

    Vlookup with front color together

    Dear all,

    Could anyone kindly help to offer the solution of how to vlookup with font color together from the soucing excel not just value?

    I search by google and get a VBA solution like this:

    Please Login or Register  to view this content.
    But seems it didn't work in my case. Can anyone kindly help?

    Btw, I am new to VBA, Detail explanation will be highly appreciated, thanks a lot in advance!
    Last edited by teylyn; 05-02-2011 at 11:46 PM. Reason: added code tags

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Vlookup with front color together

    Hello,

    Please use code tags when posting code. I've added them for you this time.

    What does not work? I don't understand completely what you want to achieve. Look up colors? Please post a sample file and explain in context.

  3. #3
    Registered User
    Join Date
    05-02-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Vlookup with front color together

    Thx for ur help and sorry for not note that need to use quote tags as a new comer.

    My situation is:

    I have two excel files - A.xls & B.xls. The column B2:E20 of A.xls are values that vlookup from B.xls and the fomular is
    =vlookup(A;A,'Y:\Testing\Procurement\[B.xls]Sheet1'!$A:$E,5,FALSE)
    As u can see, vlookup can only have the value back but not the font colors of original data together the same time. But I need to know the font color on some cells of A.xls, once B.xls change the font color of column E, eg. from Red to Blue.

    Is it clear? Or I need to upload the two excels for asking help? Thx in Adv anyway~~~

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

    Re: Vlookup with front color together

    That Function doesn't look like it returns a colour.
    It doesn't specify a different workbook so if it worked it would not be checking a different workbook.
    Also a Function cannot affect a cell's formatting
    Last edited by royUK; 05-03-2011 at 04:51 AM.
    Hope that helps.

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

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    05-02-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Vlookup with front color together

    oh, thanks for your kindly reply. And is there any other way to make vlookup get the value with font color of cell by using VBA?

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

    Re: Vlookup with front color together

    As Teylyn sid - please post a sample file

  7. #7
    Registered User
    Join Date
    05-02-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Vlookup with font color together

    Enclosed please find Order2011.xls & Sales2011.xls
    Two columns "date" & "customer" of Order2011.xls are vlookup from Sales2011.xls.

    But the value got through Vlookup can display in black only.
    I hope Order2011.xls can see the value with the font color(in pink & blue) the same as the cells on sales2011.

    Is there any way can achieve that? Thx a lot in adv~~~
    Attached Files Attached Files

+ 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