+ Reply to Thread
Results 1 to 6 of 6

Macro to Delete rows that have #REF! in column B

  1. #1
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Macro to Delete rows that have #REF! in column B

    I have a macro that copy’s from another sheet and paste “Values Only” into the activeworkbook. I need a macro that will go sheet by sheet and remove any rows that have “#REF!” in Range(B2:B)

    Thank you for your help
    Bramz

  2. #2
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Macro to Delete rows that have #REF! in column B

    I figured out a crude way of getting this accomplished. Hope this might help someone else that is having similar Problems...If anyone has a better way to get this something accomplish please feel free to post it. I will set as solved and the end of he night so about 10 hours from now!

    Please Login or Register  to view this content.
    Last edited by meabrams; 07-23-2016 at 10:51 PM. Reason: type-o's

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Macro to Delete rows that have #REF! in column B

    Try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Macro to Delete rows that have #REF! in column B

    Or May be
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Macro to Delete rows that have #REF! in column B

    I am unable to get your macro to remove the rows that have #REF! As the Value. I think that your macro is looking for a formula error instead of looking at the cell value

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Macro to Delete rows that have #REF! in column B

    You are right as for post #3 but in Post#4 it is dealing with both the formulas and constants .. Try it again

+ 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. Macro to keep rows that have certain text in one column, delete rows that do not.
    By mandalope in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2014, 02:35 PM
  2. [SOLVED] Macro to Delete rows if Column has certain name
    By momer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2013, 10:59 PM
  3. [SOLVED] Macro to delete rows in column C
    By SVTF in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2013, 06:30 PM
  4. need help with a macro to delete rows that contain any value in a given column
    By dogguy2010 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-26-2012, 11:10 PM
  5. Macro to delete certain columns and delete rows based on time in another column
    By beepbeep27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2012, 11:47 AM
  6. Replies: 3
    Last Post: 09-15-2011, 07:26 AM
  7. create macro - delete all rows with zero in column L
    By Johnny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2006, 05:15 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