+ Reply to Thread
Results 1 to 5 of 5

macro to replace specific data with column header text

  1. #1
    Registered User
    Join Date
    08-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    15

    macro to replace specific data with column header text

    Hi all,

    Could someone help me with a simple Macro that would find and replace any cell in a worksheet that contained "T" (for true) with the header value in the first row of the particular column?

    i.e., original rows:
    Please Login or Register  to view this content.
    updated rows:
    Please Login or Register  to view this content.
    Thank you,

    ~Wayne

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: macro to replace specific data with column header text

    Wayne - try this:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: macro to replace specific data with column header text

    Perfect!!! Thank you.

    Just realized some folks have middle initial "T". Is it possible to set the range of columns searched from R to Z?

    I may be pushing my luck... but is it possible to have it replace the "F" (false) replaced with empty cells on with the same function as well?

    ~Wayne

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: macro to replace specific data with column header text

    Like so?
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: macro to replace specific data with column header text

    THANK YOU!!

    You rock.

    Can't see how to mark this thread solved.

    ~Wayne
    Last edited by wkilc; 08-12-2010 at 11:55 AM.

+ 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