+ Reply to Thread
Results 1 to 2 of 2

Changing font on certain words in a cell.

  1. #1
    Registered User
    Join Date
    11-04-2010
    Location
    Ottawa, Ontario, Canada
    MS-Off Ver
    Excel 2002
    Posts
    13

    Question Changing font on certain words in a cell.

    Hi experts,

    Using Excel (VBA). I have a variable(and/or) a cell.value containing text (normally 1 or 2 paragraphs). I would like to make certain words (the titles - see below) in bold but not all the text in the variable or cell.value. I've considered using a .find and then playing with the .character option but I was hoping there would be a better/easier way. Perhaps an existing function that I might not be aware of.

    i.e. Variable or Cell.Value would contain the following end result: (I can achieve these results already - without the bold title option)
    --------------------------------------------------------------------------------------------

    Entered by: John Doe
    --------------------------
    PA Period
    From: 5/18/2011
    To : 5/18/2011
    --------------------------
    RI Criterias:
    None

    DNME Criterias:
    None
    --------------------------
    Notes:
    Bla bla bla here.

    --------------------------------------------------------------------------------------------

    Any ideas?

    Edited: Added code below for a better idea. I'm manipulating data by "Add Entry" button on a form (IOEXForm) and items are populated by items in the form. The code below can provide the results above. Though I'm looking to put some of the text(titles) in bold. Any help would be appreciated.

    Please Login or Register  to view this content.
    Last edited by CEC; 05-18-2011 at 03:17 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Changing font on certain words in a cell.

    Hello CEC,

    You should post your workbook. Seeing the layout, formatting, formulae, and any VBA code, will guarantee you get a working solution. A lot of time will also be saved by eliminating guesswork.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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