+ Reply to Thread
Results 1 to 5 of 5

Macro seems to make entire text string in cells Bold

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Macro seems to make entire text string in cells Bold

    Hi everyone,

    I have the following code:

    Please Login or Register  to view this content.
    Pretty simple. However, whenever I run the code, if there's even on word that is bold in the cell, then the entire text string in the cell turns bold. How can I stop this from happening? i want to keep the format of the text string the same, only remove and replace the items listed in the code.

    Thanks!

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Macro seems to make entire text string in cells Bold

    Sorry... you can bold the entire cell or nothing..
    but you can't only a single character of it separately..

    however, you can try following..

    Please Login or Register  to view this content.

    Don't forget to click *

  3. #3
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Macro seems to make entire text string in cells Bold

    Hi Vikas,

    Thanks for getting back to me. The text in the cell right now already has some words bolded while others are not. What I'm trying to do is keep that specific format from changing. i will try your code. Thanks!

  4. #4
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Macro seems to make entire text string in cells Bold

    I'm getting an error on the .replace(word,"") line. Saying it expected a =

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Macro seems to make entire text string in cells Bold

    Okay then try this..
    these were the braces which are posing problem...

    Please Login or Register  to view this content.

    Don't forget to click *

+ 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] Make string bold
    By Justair07 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-30-2013, 02:33 PM
  2. Macro to format cells to make bold and bordered
    By nyhiggs22 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2012, 05:14 PM
  3. Make a word bold if it starts with a particular character/string
    By lightsandsirens in forum Word Programming / VBA / Macros
    Replies: 9
    Last Post: 03-08-2010, 09:28 AM
  4. Make string bold?
    By Adam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2005, 11:07 AM
  5. How do I make this string bold?
    By Adam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2005, 11:06 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