+ Reply to Thread
Results 1 to 2 of 2

Conditional Date Filter in Macro

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    South
    MS-Off Ver
    2010
    Posts
    1

    Conditional Date Filter in Macro

    Hi,

    I am having trouble setting conditional date filters for a column using a macro. I have two columns, A&B, each with dates in each cell. I want to filter column B to show dates that are less than or equal the corresponding cell in column A.

    For example: A1=10th June 2014, B1=11th June 2014 --> The filter is set on column B, and B1 is excluded as it is not <= A1.

    Any help is much appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Conditional Date Filter in Macro

    Start recording macros and looking at the code, i did this is less than a minute and just altered the criteria recorded.

    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

+ 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. Conditional formatting on pivot macro disappears if followed by a filter
    By danedgario in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2013, 07:43 AM
  2. Date filter in macro
    By kronback in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2012, 02:25 PM
  3. Excel 2007 : Need a macro to filter date
    By jchakkalakal in forum Excel General
    Replies: 1
    Last Post: 10-16-2011, 06:55 AM
  4. adding filter by date to a macro
    By WhirlwindEnt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2009, 11:42 PM
  5. Date Macro filter
    By mister z in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2005, 03:05 PM

Tags for this Thread

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