delete row

  1. B

    Macro that deletes the row if requirements fullfill

    Hello, I have trouble constructing macro that would automatically check filled rows from the sheet and delete the dummy rows that copied file generates. Dummy rows are recognized by the facts that they don't have data in column A, BUT they have data on column C. So the macro would have to...
  2. T

    Type mismatch error, while deleting the cells

    I'm trying to write code like.. when user make change in worksheet code runs... so i choose "worksheet" and "change in dropdowns... code deletes current row when user enters certain value in it, lets say when user types "complete" (actually its 'Dropdown' so, cell will be currently selected.)...
  3. C

    Delete entire row if it contains a specific word

    hi all, how am i able to delete a entire row if it contains the word p6 thanks
  4. E

    Deleting Entire Row on Excel 2010 v 2007

    Hi, I was wondering if anyone can help me. I recently got a new laptop to replace my 6 year old one. The new one has Excel 2010 on it, whereas the old one had Excel 2007. In a particular large-ish file (8mb & 60ish sheets), when I delete an entire row in Excel 2010, it takes about 7-8 seconds...
  5. B

    Delete Empty Rows is range

    I am trying to delete all the empty rows in a range. What I currently have deletes the rows but skips over a lot as the code runs. Below is what I currently have. 'msgbox delete blanks??? If MsgBox("Are you sure you want to delete ALL the blank rows in the chart?", vbYesNo, "Delete...
  6. T

    Cut and Paste entire Row to another sheet

    Hello, I'm trying to figure out how to cut and paste an entire row to a certain sheet based on column I in sheet 1. If it contains the word newspaper it will then be transferred to the newspaper sheet. I have TV and radio as other categories. It will only search for rows that are not colored red...
  7. L

    Delete Row if Cell Value = 0 (Probably Easy?)

    Hi, I have a question (which kind of follows on from my post yesterday) See: http://www.mrexcel.com/forum/excel-questions/722302-function-determining-if-city-contained-list.html Yesterday, I asked for help to find a formula for returning the value "1" or "0" depending on whether a given city...
  8. T

    Find Duplicates and Highlight Row in Red

    Hello Everybody, Let me explain exactly what I'm trying to figure out. I am looking in every row starting in Columns P, Q and R. It will go to the next row below the first and see if those columns have the same exact value. If it doesn't it goes onto the next row. If it turns out that row 1...
  9. D

    Macro to Filter and Delete Row Not Deleting Visible Filtered Rows

    Hello, I'm working through a filter macro to delete unecessary rows of data from my dataset. - I have a Dynamic Range for my dataset called "CanadaData" - I'm trying to delete rows from the 5th column of my dataset for cells containing "DIRECTSHIP" The macro filters the range fine, but when...
  10. M

    Delete entire rows that contain any of the values contained in a seperate list

    Hi, I'm fairly new to VBA, I'm trying to pick it up by recording macros and editing them, with a little bit of help from Google and forums like these. I have a master list of customers contained on one sheet ("MasterList"), including various details across numerous columns on the same row. I...
  11. T

    Delete Macro

    HI I need help creating a Macro to delete a row. Private Sub btnRemoveCrate() Dim CrateRef As String CrateRef = cbCrateRef.Text **the Macro must find the selected text in the first column of active sheet and the delete the whole row containing that text. Rows(???Containing the...
  12. C

    How Can I Delete Row Based on Criteria of Cell - VBA?

    Does anyone know the VBA to delete a row based on the contents of a particular cell? I have the following formula comparing to another sheet to see if there is a duplicate: =IF(ISERROR(MATCH(B7,Data!A:A,0))=FALSE, "Y","N") How can I write the VBA to then take the cells that have a "Y" and...
  13. M

    If a cell is blank, delete the whole row

    I don't know why this is so hard. The goal: Go through Column R, rows 2 thru 46. If the cell is empty, delete the whole row, then check the next row in Column R The number of rows is fixed. It'll always be 2 thru 46. (My research shows lots of code for variable length ranges) Among other...
  14. J

    Deleting specific rows

    I want to delete some rows that are identical. Aside from creating a macros to do this, is there a way to find a row with a specific criteria and delete it if value returns TRUE?
  15. I

    Macro to delete the cells from F to L if the data in L = #N/A.

    I have been looking all over and I can only find macros on how to delete the entire row based on the data in a cell in that row. I'd like something to run through a spreadsheet and delete Frownumber:Lrownumber if the Lrownumber cell has #N/A. Some addons I am not sure if I would need or not...
  16. R

    Simple- Find and Delete Row

    I have a combo box in a userform and i need to find a match in a specific column (A) of the worksheet “Inventario” and delete the complete row. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p> <o:p>Thank You </o:p>
  17. T

    How to delete subsequent row if adjacent cell value >0 ???

    Hi guys, I'm doing a spreadsheet for different countries with numerous Reports. Whenever I insert a report for an individual country, a row will be inserted below. ActiveCell.Offset(1).EntireRow.Insert However when I enter the value for report #1 for Bangladesh in the other columns (...
  18. A

    Forms and formulas

    I was wondering if I could get a hand with some problems. -Is there a formula to delete rows from a worksheet without deleting them by hand. -I am attempting to build a form that automatically fills in a specific worksheet depending on the first choice in the form. Is there a way to make a...
  19. X

    VBA: Search for two values and delete all rows between them

    I have two worksheets, Sheet1 and Sheet2. In Sheet1 i have two cells, B5 and B6 that contain two different values (User can change these). I'm trying to write a code that searches Column A in Sheet2 for the values in Sheet1 B5 and B6, and deletes the rows between them (including the cells that...
  20. khawarameer

    Deleting Blank Rows (VBA)

    Dear All, I have a large worksheet with approx 55600 rows. However many rows in the sheet are empty. I used a macro to delete empty rows but it is giving me "Run time error '6' ". Here is the code i am using Sub Deleterow() Dim xlastrow As Integer Dim xrow As Integer xrow = 1...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top