+ Reply to Thread
Results 1 to 5 of 5

Find and Clear certain text from cells

  1. #1
    Registered User
    Join Date
    06-19-2018
    Location
    Boston
    MS-Off Ver
    2016
    Posts
    40

    Find and Clear certain text from cells

    I have VBA code that finds certain text puts it in another cell and then clears the original cell of the specific text. My issue is when the text UL is the first text in a cell with no spaces in front of it the code does not seem to pick it up. If I put a space then UL the code picks it up. Any idea why that is?
    Please Login or Register  to view this content.
    Last edited by xBxW; 07-03-2018 at 01:13 PM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,230

    Re: Find and Clear certain text from cells

    Hallo daar mater...

    In future please view the forum rules before posting. Your post does not comply with rule #3.
    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing.
    So, do the following:
    Edit your post, highlight your code and click the [#] button at the top of the post window.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,230

    Re: Find and Clear certain text from cells

    thanks...
    this line...tells code to ignore blanks and cells that contain "UL"
    Please Login or Register  to view this content.
    Is this perhaps what you are trying to achieve...
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-19-2018
    Location
    Boston
    MS-Off Ver
    2016
    Posts
    40

    Re: Find and Clear certain text from cells

    That worked perfectly! Thanks for the help!

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,230

    Re: Find and Clear certain text from cells

    .........................................
    Thanks.gif

+ 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. Clear Cells when text in
    By JeDD21 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2017, 04:13 PM
  2. Macro - find cells row by row, clear contents if certain value in cells
    By astrbac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2014, 05:34 AM
  3. [SOLVED] VBA help needed to find text string, clear cells then add new cell value
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2014, 11:29 AM
  4. Macro to find bold cells then clear adjacent cell
    By painterartist in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2011, 04:47 PM
  5. Find Duplicates if found clear specific cells
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2011, 12:18 PM
  6. Clear contents of cells that do not contain specific text, sort cells that do
    By feckless.lout in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2010, 01:41 AM
  7. Find Text Clear Next Row
    By wburbage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2007, 08:14 AM

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