criteriarange

  1. S

    VBA to delete range of cells that don’t contain certain text

    Hello I have a cell range C5:F34 Each row relates to same record with a different column heading C:F. I would like to be able to clear all cells except for the rows that have “Not Arrived” or “DCase” in column F. I have made a start with the below however it only deletes the contents of cell F...
  2. P

    ActiveSheets.Range("").Copy Method

    Ok, so I am working on a macro seen below: Sub Data_Parse() Dim ER As Long ER = ThisWorkbook.ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row Dim Cell As Range Dim CriteriaRange As Range Set CriteriaRange =...
  3. P

    InStr to do things of file contains string

    Here is what I am currently building: Sub Macro1() Dim ER As Long ER = ThisWorkbook.ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row Dim Cell As Range Dim CriteriaRange As Range Set CriteriaRange = ThisWorkbook.ActiveSheet.Range("A2:A" & ER) For Each Cell...
  4. P

    InStr Question

    Sub Macro1() Dim ER As Long ER = ThisWorkbook.ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row Dim Cell As Range Dim CriteriaRange As Range Set CriteriaRange = ThisWorkbook.ActiveSheet.Range("A3:A" & ER) For Each Cell In CriteriaRange If...
  5. J

    Advanced Filter CriteriaRange

    Hello, I have the code below that does work except for one variable (crit) I have changed. With Data Set crit = .Resize(2, 1).Offset(, lc.Column + 1) crit = [{"Season";"<>"}] & Me.cbo_Season.Value Set ws = Sheets.Add .AdvancedFilter Action:=xlFilterCopy...
  6. L

    Using CriteriaRange to exclude blank cells in a Range with AdvancedFilter XLS2003

    OK guys, I am having trouble with the following... In column A I have several cells containing data, which may have multiple entries of the same data. Along with this there are potentially blank cells. I want to perform an AdvancedFilter on this column to take only the cells which have data...

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