+ Reply to Thread
Results 1 to 6 of 6

Extract data with specific font from cells with content in several lines

  1. #1
    Registered User
    Join Date
    03-24-2021
    Location
    India
    MS-Off Ver
    2008
    Posts
    5

    Extract data with specific font from cells with content in several lines

    Platform: Windows10

    Excel version: MS Excel for 365 Apps (Version 2008)

    Please see the attached excel sheet.

    I am trying to read data that has font Green. Please note that a cell can have more than one lines and it is possible that only some lines in a cell are Green and other are default Black.

    I have a user-defined function (in attached macro sheet) that reads a cell with multiple lines and extract only those lines that has font Green.

    But the output comes in one line. Can you please help me to get the output in multiple lines in one cell?

    Thanks, Vikas
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract data with specific font from cells with content in several lines

    D2:
    =GetColorLines(B2)
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-24-2021
    Location
    India
    MS-Off Ver
    2008
    Posts
    5

    Re: Extract data with specific font from cells with content in several lines

    Hi jindon,
    Thanks for the response!

    Your code is doing same what my code is doing.

    I need help to understand how I can enter line break in returned values.
    So if A and B are marked Green, the output should not be AB, output should be:
    A
    B

    And Both A and B should be in same cell.

    thanks, Vikas

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract data with specific font from cells with content in several lines

    Quote Originally Posted by vikassi View Post
    Hi jindon,
    Thanks for the response!

    Your code is doing same what my code is doing.
    Are you on Mac?

    Then replace all vbLf with vbCr
    Last edited by jindon; 03-24-2021 at 03:36 AM.

  5. #5
    Registered User
    Join Date
    03-24-2021
    Location
    India
    MS-Off Ver
    2008
    Posts
    5

    Re: Extract data with specific font from cells with content in several lines

    it worked now when I clicked on wrap text ..

    thanks so much!

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract data with specific font from cells with content in several lines

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Changing font colour for specific text content.
    By CDandVinyl in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 12-18-2019, 09:48 AM
  2. Replies: 0
    Last Post: 04-26-2019, 09:41 AM
  3. How do I extract specific lines of data and import them into a new sheet?
    By nathan488 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2017, 02:58 PM
  4. [SOLVED] Need help on a formula to extract specific content between different characters
    By rajeesh31 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 06-14-2017, 03:51 AM
  5. Extract cells from worksheet that contains specific font size
    By jesse030 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2016, 02:10 AM
  6. Macro to extract data from multiple workbooks, specific sheet, specific cells
    By crissandraauree in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2012, 03:54 PM
  7. Replies: 1
    Last Post: 08-03-2006, 07:55 AM

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