+ Reply to Thread
Results 1 to 6 of 6

Bold First Instances of data in Column

  1. #1
    Registered User
    Join Date
    02-23-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    55

    Bold First Instances of data in Column

    Hi Everyone, I'm having a bit of trouble wrapping my mind around making particular updates to a spread sheet. What I'm trying to do is have the script look at a column of data and make only one instance of text bold and leave all the rest of the duplicates alone. I'm going to do more than make the text bold, but that's not my problem. To show what I'm trying to do I made a small list below. What the script needs to do is look at the first cell and make the text Bold. Then ignore all other duplicates of this cell and move onto the next unique cell (Data B) and make that one bold and so on and so forth. Can anyone help me attack this? Everything I've found online uses arrays and I really don't understand how they work. Any help is greatly appreciated!!!




    Data A
    Data A
    Data A
    Data A
    Data A
    Data B
    Data C
    Data C
    Data C
    Data C
    Data C
    Data C
    Data C
    Data C
    Data C
    Data C
    Data C
    Data C
    Data C

  2. #2
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Bold First Instances of data in Column

    Hello!!

    You have to define what will be your "iColumn" (if is A, iColumn = 1)

    Please Login or Register  to view this content.
    Last edited by Gatti; 01-09-2016 at 10:10 PM.

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2505
    Posts
    2,790

    Re: Bold First Instances of data in Column

    This macro assumes you have a header row. If not let me know and I'll change the code.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-23-2012
    Location
    FL
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Bold First Instances of data in Column

    Wow you both are amazing! Thank you both very much!! I never have used the "Cell" function much before and that was the missing link for me for sure. Both macros work as intended too. Thank you!!

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Bold First Instances of data in Column

    @Gatti
    Great code but changes the value in A1 .. you missed to set the range in this line
    Please Login or Register  to view this content.
    It should be
    Please Login or Register  to view this content.
    @ Bruce
    Thank you very much for the code
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  6. #6
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Bold First Instances of data in Column

    Quote Originally Posted by YasserKhalil View Post
    @Gatti
    Great code but changes the value in A1 .. you missed to set the range in this line
    Please Login or Register  to view this content.
    It should be
    Please Login or Register  to view this content.
    @ Bruce
    Thank you very much for the code
    Oops... tottaly true
    My bad

    Thanks for the feedback

+ 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] if the column K,L is in bold and italic,the move also is in bold italic
    By hktom in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2015, 05:21 AM
  2. Replies: 3
    Last Post: 08-14-2015, 11:59 AM
  3. Locate all the instances of a list of values in one column in another column
    By norwoodkd2001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-01-2015, 09:52 AM
  4. Replies: 4
    Last Post: 12-16-2013, 06:29 PM
  5. [SOLVED] find bold number in Column A and copy range to column C
    By joek13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-24-2012, 10:32 AM
  6. formula for column instances reference another column and plot average on X, Y, axis
    By silverbullet08 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-15-2012, 07:48 AM
  7. Data to column by bold letters
    By hbamse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2006, 04: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