+ Reply to Thread
Results 1 to 3 of 3

This macro deletes numbers but not text .

  1. #1
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    562

    This macro deletes numbers but not text .

    Hello all ,

    I am hoping to get a small change made to this macro so I can delete all rows except when
    col AB (RaceTrackCondition) is Dead or heavy . I can alter if able to later .

    The macro del rows placings was the first I obtained and simply deletes all rows except for 1 or 1= in col
    AL . Works great .

    I have adapted it to work for col Q (del rows remove dist) , here it leaves the 5 distances
    I want left . Works great .

    But I can not get it to work with text , words in col AB . Doesn’t work at all .

    Any ideas would be great . Should end up with 311 rows left plus headings .
    Thanks .
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: This macro deletes numbers but not text .

    This will do it. Just modified your code. Your using "UCase" so Heavy and Dead in your select case needs to "HEAVY" and "DEAD"

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    562

    Re: This macro deletes numbers but not text .

    Thanks Mike , i have your revised macro working well . Nice simple answer .
    Thanks for you help .

+ 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] Macro that deletes just Text Boxes on all sheets in a workbook
    By ERaasio in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2013, 03:57 PM
  2. [SOLVED] Need Help cleaning up Macro that imports text file and deletes unnecessary rows
    By ppilot in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-16-2013, 10:44 PM
  3. [SOLVED] [SOLVED] Macro/Wildcard to remove only numbers excluding text with numbers
    By indianhp in forum Word Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2013, 08:16 AM
  4. Replies: 6
    Last Post: 08-22-2011, 09:50 AM
  5. Creating Excel Macro That Deletes Entire Row with Specific Text
    By Efar68 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2011, 04:33 AM
  6. Cancel button on form deletes text and needs clicking twice
    By johncassell in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-19-2010, 11:51 AM
  7. Select & Delete text in TextBox1 also deletes text in TextBox2
    By heinousanus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2006, 08:02 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