+ Reply to Thread
Results 1 to 8 of 8

VBS Code to exclude Strikeout

  1. #1
    Registered User
    Join Date
    06-07-2021
    Location
    St Louis
    MS-Off Ver
    365
    Posts
    4

    VBS Code to exclude Strikeout

    Hi Everyone,

    Im new here and have looked for an answer for VB to identify cells that do not have strikethrough applied. For example, In column A there are prices listed, some are old prices. The newer price is listed in the cell below. In column B, I want to insert a Y if there is no strikeout in the corresponding cell in column A.

    Does anyone know how I can accomplish this?

    Thank you in advance and have a great day,

    Debbiejj

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBS Code to exclude Strikeout

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: VBS Code to exclude Strikeout

    Try this code in a module.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-07-2021
    Location
    St Louis
    MS-Off Ver
    365
    Posts
    4

    Re: VBS Code to exclude Strikeout

    Thank you very much. I appreciate you helping me. I used the code, but cant seem to get the right formula to use in the column that I want to include the Y. I don't have any experience with VB and am trying to learn through application.

    thanks again Debbie

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBS Code to exclude Strikeout

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  6. #6
    Registered User
    Join Date
    06-07-2021
    Location
    St Louis
    MS-Off Ver
    365
    Posts
    4

    Re: VBS Code to exclude Strikeout

    Thank you, I’ll try this, could you please let me know what the formula should be in cell B1?

  7. #7
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: VBS Code to exclude Strikeout

    There are no formulas with this VBA solution. Here is a working file. If you need instructions how to apply it to your working file, either upload your file or let us know.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-07-2021
    Location
    St Louis
    MS-Off Ver
    365
    Posts
    4

    Re: VBS Code to exclude Strikeout

    This worked perfectly! Thank you so much.

+ 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] Changing colours and strikeout lines depening on cell value
    By bruno2580 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-30-2019, 10:28 AM
  2. [SOLVED] COUNTIF but not strikeout
    By jrmcfall in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-01-2017, 12:31 PM
  3. [SOLVED] VBA Code to exclude certain Textboxes
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2016, 06:19 AM
  4. Exclude certain rows from VBA Code
    By FallingDown in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2011, 07:08 AM
  5. Strikeout whole row based on column F
    By melbourne in forum Excel General
    Replies: 2
    Last Post: 07-17-2007, 09:12 AM
  6. sumif when not strikeout and secodn column is not 0
    By FrankB in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-29-2006, 11:53 AM
  7. Replies: 1
    Last Post: 08-16-2006, 09:40 AM

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