+ Reply to Thread
Results 1 to 6 of 6

Match text in one tab against another tab that has the same text formatted

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Match text in one tab against another tab that has the same text formatted

    Hello,

    I am working on a Calendar macro. It is just about complete but I have one issue. The end users want specific coloring to the tasks that get brought into the calendar where some words in the cell are colored differently than other words in the same cell. Some tasks are green, some are blue, some are red etc. Conditional formatting isn't an option because one cell may have just a few words red while the rest is black. I have the macro built to pull formulas in that bring over the tasks from a task list tab into the calendar however they come in black. What I want to do in the code now is paste value the calendar that has formulas once the tasks are brought over and then do a match between the tabs. When the match is found go to the task list tab that has the colored text copy it and bring it back into the calendar so that i get the coloring the end users are looking for. Any help will be appreciated.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Match text in one tab against another tab that has the same text formatted

    Hello amartin575,

    You should post a copy of the workbook for members to be able to write and test their solutions for you.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Match text in one tab against another tab that has the same text formatted

    The file is attached. On the Calendar - Macro tab you will see the macro button to build the calendar. When hitting the button you will see a window pop open to input the month and year you want the macro to build out. It will build out the numbers for the weeks and then insert rows to expand the box for each day. It then does formatting etc. finally it copies over formulas (which we are going to change how the formulas get in) from the Daily Formulas tab and pastes them into the sections on the Calendar - Macro tab. At this point the calendar is complete however the text comes in black and i need it to come in colored as they are on the first column on the task tab.

  4. #4
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Match text in one tab against another tab that has the same text formatted

    any takers?

  5. #5
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Match text in one tab against another tab that has the same text formatted

    Hello again,

    Ok so I am closer. Attaching an updated file. If you look at the Sub FindStr() macro you will see it searching through the list of items on the task list finding matches and once found it copies from the task list tab over to the calendar macro tab to get the coloring however in the code I have it copy and then it goes through sh.Cells(6, fCol). You can view the code for the rest of the dimensions that set each. The issue is the 6 in sh.Cells(6, fCol). The macro is only working on row six of the calendar because of this. I need it to go through all rows of the calendar. I almost need this code to do a looper through the count of rows in the calendar running the matches on every task in the task list over every row in the calendar. Also if you look in the code I repeat the find portion of the macro over and over again going through every item in the task list. I was hoping to loop through the list of these as well to shorten the code up. Any suggestions greatly appreciated.

  6. #6
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Match text in one tab against another tab that has the same text formatted

    I figured it out. Thanks if anyone was looking into it.

+ 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] Match Differently Formatted Text Columns
    By spiphix in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2016, 07:18 PM
  2. Convert formatted text to fixed text value (time)
    By steez in forum Excel General
    Replies: 2
    Last Post: 04-10-2015, 03:12 PM
  3. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  4. Replies: 3
    Last Post: 09-19-2010, 02:23 AM
  5. Replies: 7
    Last Post: 07-31-2009, 10:49 AM
  6. Pasting HTML formatted text as plain text in Excel
    By JeffCutter in forum Excel General
    Replies: 1
    Last Post: 09-21-2007, 07:43 AM
  7. Converting 'General' formatted cells to Text formatted cell using.
    By Zahid Khan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2005, 04:06 PM

Tags for this Thread

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