+ Reply to Thread
Results 1 to 3 of 3

For all cells with font size bigger than 9, make that cell bold and color white

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    59

    For all cells with font size bigger than 9, make that cell bold and color white

    Hi all

    I have a sheet with various cells of text and I need help to create a vba code to loop through each cell within the sheet, test each cell to see if the font size in that cell is bigger than 9, and if it is then add to that cell bold and color:vbwhite attributes .. if not bigger than 9 then leave the cell be.

    Is there anyway to do this? I am new at VBA so I am not sure if this is even possible?

    Please let me know if you need any clarifications

    Thanks!
    Jason
    Last edited by jasondu; 05-18-2012 at 02:21 PM.

  2. #2
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: For all cells with font size bigger than 9, make that cell bold and color white

    Please Login or Register  to view this content.
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  3. #3
    Registered User
    Join Date
    05-18-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: For all cells with font size bigger than 9, make that cell bold and color white

    Thanks so much! worked like a charm!

    Jason

+ 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