+ Reply to Thread
Results 1 to 4 of 4

Excel Macro: Bold Entire Row if Cell Contains the word Total

  1. #1
    Registered User
    Join Date
    03-01-2017
    Location
    Manila, Philippines
    MS-Off Ver
    MS Office 2007
    Posts
    77

    Excel Macro: Bold Entire Row if Cell Contains the word Total

    Hi excelforum Experts,

    I am trying to format the entire row into Bold if the cell contains the word "Total". Is it correct putting an asterisk sign as prefix and suffix to the word "Total" as wild character to capture each cell that contains the word "Total"?

    Here are the possible words that will contain the word Total:
    1.) Total Assets
    2.) Total Liabilities
    3.) Total Equities
    4.) Grand Total
    5.) Sub-total
    6.) And so on...

    Please see VBA code below that I am referring to:

    VBA Code Sample.png

    I appreciate if there could be someone that could help me fix the VBA code above and arrived at my desired output as mentioned above. Thanks!

    Warmest regard,
    Arnel

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Excel Macro: Bold Entire Row if Cell Contains the word Total

    Arnel

    When using = you can't use wildcards, change = to Like.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    03-01-2017
    Location
    Manila, Philippines
    MS-Off Ver
    MS Office 2007
    Posts
    77

    Re: Excel Macro: Bold Entire Row if Cell Contains the word Total

    Hi Norie,

    Thanks for your immediate feedback and for the clarifications! I appreciate it much.

    Warmest regards,
    Arnel

  4. #4
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: Excel Macro: Bold Entire Row if Cell Contains the word Total

    Try:

    Please Login or Register  to view this content.
    HTH,
    Maud

+ 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. Replies: 0
    Last Post: 03-28-2016, 12:47 AM
  2. Lop to Bold Entire Row if cell contains text
    By xfortunax in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 10-23-2015, 03:05 PM
  3. [SOLVED] Help with macro to find a specific word and replace the entire cell with the return word.
    By BG1983 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-24-2015, 09:40 PM
  4. Macro seems to make entire text string in cells Bold
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2014, 01:30 PM
  5. Replies: 2
    Last Post: 10-25-2013, 02:40 PM
  6. Macro to move entire row if cell contains a specific word and moved to sheet 2
    By Astarte in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2011, 09:21 AM
  7. [SOLVED] Macro to delete entire row if cell contains the word "total" or "Total"
    By theatricalveggie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2011, 12:38 PM

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