+ Reply to Thread
Results 1 to 4 of 4

loop to check cell contains strikethrough/underline

  1. #1
    Registered User
    Join Date
    05-19-2016
    Location
    Melbourne
    MS-Off Ver
    1
    Posts
    23

    loop to check cell contains strikethrough/underline

    How do I create a code whereby it checks if the cell contains a strikethrough or underline (or both) then it does something, otherwise it wont, and will check the next cell.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: loop to check cell contains strikethrough/underline

    Hi dweebz,

    What range are you working with?

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    05-19-2016
    Location
    Melbourne
    MS-Off Ver
    1
    Posts
    23

    Re: loop to check cell contains strikethrough/underline

    The range I'm working with is from the first row of the last column, to the last row of the last column.

    This is my code to colour strikethrough text blue and underlined text red, but it's really slow and i'm trying to find a way to optimise this process.

    So i thought, if I include a feature where, if the cell does not contain a strikethrough nor underline, it will skip it and go to the next cell, therefore making it more efficient.

    But I haven't figured out a way to integrate that sort of feature into my code below.

    Please help

    Please Login or Register  to view this content.
    Last edited by dweebz; 05-26-2016 at 02:39 AM.

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: loop to check cell contains strikethrough/underline

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    Last edited by Trebor76; 05-26-2016 at 02:59 AM.

+ 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. Colouring Strikethrough/Underline text within a cell via Loop
    By dweebz in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-27-2016, 09:56 AM
  2. [SOLVED] Loop through column check for colored cell and copy that cell to cells below it.
    By RENCE19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2013, 04:51 AM
  3. Strikethrough Red and Underline Blue Macro
    By Rainman76 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-28-2011, 04:41 AM
  4. Check StrikeThrough In Formula not VBA
    By andrew c. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2011, 01:36 PM
  5. [SOLVED] Borders nor underline commands remove an unusual underline. ??
    By VideoFreak in forum Excel General
    Replies: 4
    Last Post: 02-11-2006, 04:20 PM
  6. [SOLVED] formatting (underline/bold/strikethrough) in comment boxes
    By adam l via OfficeKB.com in forum Excel General
    Replies: 3
    Last Post: 11-08-2005, 02:00 PM
  7. Strikethrough and Underline Font Macro
    By Rainman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-07-2005, 06: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