+ Reply to Thread
Results 1 to 4 of 4

VBA/Macro to remove rows if two conditions are met

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Dunedin, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    50

    VBA/Macro to remove rows if two conditions are met

    Hi there, I need to delete rows where the cells in column b "UnitID" contain "80BUILD" AND the cell in column F (CompType) = 14 - I know I can use auto filter, but it would be much easier to do this at the push of a button (so to speak!).

    Any ideas/thoughts!


    Thanks in advance of your amazing help

    Cheers
    Emma

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA/Macro to remove rows if two conditions are met

    Well, you can attach the fillter code to a button, so push the button.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: VBA/Macro to remove rows if two conditions are met

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    01-28-2014
    Location
    Dunedin, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: VBA/Macro to remove rows if two conditions are met

    Thanks AB33 - I've just managed to link a button to alansidman's code!

+ 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. VBA/Macro - Delete rows if 2 conditions are met
    By Nikhil76 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-19-2018, 03:18 AM
  2. [SOLVED] Remove duplicate rows with specific conditions
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2016, 11:36 AM
  3. Macro to remove duplicate entries basis of different conditions
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2014, 10:26 AM
  4. Macro for deleting rows on specified conditions
    By kmahesh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2013, 08:51 AM
  5. excel macro to remove specific columns and rows + remove duplicate
    By garrywelson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-17-2013, 12:03 PM
  6. Macro to delete rows with conditions
    By adray13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2012, 11:05 AM
  7. Remove rows with conditions
    By VBisgreat in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-17-2012, 10:45 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