daterng

  1. G

    VBA to autofilter a table rather than range.

    Hello, I am trying to code in a Filter into a report whichdownloads into excel as Table rather than range. I have to create an additional column and header, by justdoing Range(“i1”).Value=”Adviser” I Then have this code for the filter, however whatever I try,it errors on “icol =...
  2. G

    Daterng not being considered in code

    Hello, can someone point me in the correct direction, the following does not error and runs, but does not take into account the date rng criteria, just returns all values with a "yes", is there something i have done wrong. Dim Daterng As Long Dim Daterng1 As Long Daterng =...
  3. G

    countifs VBA

    Hello, I have worked out the following code which is working fine, i have however been asked to add an additional criteria in, but to be honest i am not sure where to start. Dim Daterng As Long Dim Daterng1 As Long Daterng2 = Worksheets("Homepage").Range("k2") 'check date' Daterng3 =...
  4. T

    go to current date

    Hi, I currently have the following code as worksheet activate code, it works fine but I would like to add in a message if date not found; Private Sub Worksheet_Activate() Dim DateRng As Range, DateCell As Range Set DateRng = Range("2:2") For Each DateCell In DateRng If DateCell.Value = Date...
  5. G

    countifs to last row

    Hello, i have written the following code, which works fine for one row, i am trying to change it to go to the last row, with the criteria changing from A2 to a3. a4 etc, Range("f2") = WorksheetFunction.CountIfs(ThisWorkbook.Sheets("Adviser data").Range("A:A")...

This Week's Hot Topics

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
Top