+ Reply to Thread
Results 1 to 4 of 4

VBA to delete Row if cell value in Column matches value in "A1"

  1. #1
    Registered User
    Join Date
    03-01-2019
    Location
    Nottingham, England
    MS-Off Ver
    2016/365
    Posts
    83

    VBA to delete Row if cell value in Column matches value in "A1"

    Hi Guys,

    Don't know if the is possible but I want a macro to delete the entire row if any cell in column B matches the cell value in "A1"(which is a formula controlled dynamic cell).

    I know I can do it to a set criteria but can't work out how to do it with cell value.

    Any Ideas?

    Thanks,


    Spoonman.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA to delete Row if cell value in Column matches value in "A1"

    Hi,

    Here's one way

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-01-2019
    Location
    Nottingham, England
    MS-Off Ver
    2016/365
    Posts
    83

    Re: VBA to delete Row if cell value in Column matches value in "A1"

    Thanks Richard,

    Short but sweet, love it.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA to delete Row if cell value in Column matches value in "A1"

    Thanks,

    Slightly more economical

    Please Login or Register  to view this content.

+ 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] Need Macro to filter and copy column that matches "name" in cell
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2015, 04:50 AM
  2. If "6343" in cell A3 matches "monthly" in B3 show a "Y" in C3
    By laaxy in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-05-2014, 07:38 PM
  3. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  4. Replies: 3
    Last Post: 06-22-2013, 12:54 PM
  5. Replies: 7
    Last Post: 04-11-2013, 12:46 AM
  6. [SOLVED] Delete row if cell in Column N equal "Different" or Column P equals "Blank"
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2012, 08:25 AM
  7. Delete rows in the result of formulas "OK" n column "J"
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2012, 10:08 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