+ Reply to Thread
Results 1 to 6 of 6

format a string as bold

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question format a string as bold

    Looks like a nice community here. Hopefully somebody can lend me a hand on this.

    Here is my goal:
    I have a column with 3 tri-state text strings in it. Example: |1 2 3| or |1 2 3| or | 2 3|
    So, 1, 2, and 3 all have the option of being null(not present), normal, and bold.

    I have set the inital value of each as normal text, without any formatting.

    I have tried the following code, without much success. I keep getting Invalid Qualifier errors.

    Please Login or Register  to view this content.
    I am getting the error highlighting AR_Text. in "With AR_Text.Characters....."

    If any further info is needed, feel free to ask.

  2. #2
    Registered User
    Join Date
    06-04-2012
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: format a string as bold

    As a smaller question, how about this:
    How can I set the string stored in 'AR_Text' as bold upon a userform checkbox change?
    Last edited by danman1453; 06-04-2012 at 12:20 PM.

  3. #3
    Registered User
    Join Date
    06-04-2012
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: format a string as bold

    I made the following changes, and got halfway there...

    Please Login or Register  to view this content.
    Now, it shows correctly in my column, but the bold tags are there too.

  4. #4
    Registered User
    Join Date
    11-25-2011
    Location
    Lilydale, Victoria, Australia
    MS-Off Ver
    2013 (365)
    Posts
    63

    Re: format a string as bold

    Not sure exactly what you're trying to do, but you can try something like this.
    You can do it without the WITH statement, but I have included it (commented out) in case you want it.
    It assumes your data ("AR ", "G" and " F") are in cells A1:A3.
    It just changes everything to bold, so you would have to work out what you want to do from there.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-04-2012
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2010
    Posts
    4

    Talking Re: format a string as bold

    Got it
    Please Login or Register  to view this content.
    Works perfect!

    I just needed a sounding board... Thanks.

  6. #6
    Registered User
    Join Date
    11-25-2011
    Location
    Lilydale, Victoria, Australia
    MS-Off Ver
    2013 (365)
    Posts
    63

    Re: format a string as bold

    Nice work.

+ 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