+ Reply to Thread
Results 1 to 5 of 5

VBA Deselect Formatting on Specific Text String

  1. #1
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    VBA Deselect Formatting on Specific Text String

    Hi, I wonder whether someone could help me please.

    I'm using the code below to deselect bold formatting to a particular text string in this case "(exc. C&I)".

    Please Login or Register  to view this content.
    The problem I have is that although the desired text is correctly re-formatted , so is the text after this text string and I'm not sure why.

    I just wondered whether someone may be able to look at this please and let me know where I've gone wrong.

    Many thanks and kind regards

    Chris

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,008

    Re: VBA Deselect Formatting on Specific Text String

    This line:
    Please Login or Register  to view this content.
    should be:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Deselect Formatting on Specific Text String

    Hi @romperstomper, thank you very much for taking the time to come back to me with this and for correcting my code. It's exactly what I was after.

    All the best and kind regards

    Chris

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,008

    Re: VBA Deselect Formatting on Specific Text String

    Glad to help.

    FWIW, this will be better in case you need to alter the text you are interested in:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Deselect Formatting on Specific Text String

    Hi @romperstomper thank you very much for taking the time to help me further it's truly appreciated.

    Kind Regards

    Chris

+ 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] Find text left or right of a specific character in a text string
    By Locopete99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2014, 05:55 AM
  2. Replies: 1
    Last Post: 08-28-2013, 09:07 AM
  3. [SOLVED] Macro to convert specific text and format specific text within a string
    By Mencae in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-06-2012, 12:13 AM
  4. [SOLVED] Find Specific Text in Text String and Return Value in Adjacent Column
    By watchouse in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 03:53 PM
  5. Replies: 1
    Last Post: 09-18-2005, 05:05 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