+ Reply to Thread
Results 1 to 3 of 3

Macro that filters by date - referenced by cell

  1. #1
    Registered User
    Join Date
    02-20-2017
    Location
    Madison, WI
    MS-Off Ver
    2016
    Posts
    2

    Macro that filters by date - referenced by cell

    Hello - new to the forum, thanks in advance for the assistance.

    I've got a workbook with multiple tabs, all having the identical format and layout. I've created a macro to auto filter the table on the worksheet based on a date. Right now, the date is hard coded in the macro and the macro works fine. I'd like to reference a cell from a specific worksheet vs. having the date hard coded. How can I do this? See below for the code I have. I want to reference the date entered in cell B3 from the worksheet titled "Utility".



    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 02-20-2017 at 07:17 PM. Reason: Please use code tags when posting code!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Macro that filters by date - referenced by cell

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    02-20-2017
    Location
    Madison, WI
    MS-Off Ver
    2016
    Posts
    2

    Re: Macro that filters by date - referenced by cell

    awesome - thanks again! worked perfectly.

+ 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. SUMIFS with Date Referenced in Cell
    By gregc72 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2016, 09:09 AM
  2. [SOLVED] How to get referenced cell to be recognized by macro
    By kspeese in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-20-2013, 07:25 PM
  3. Replies: 14
    Last Post: 09-04-2013, 12:01 PM
  4. Value in one cell based on day of week referenced by a date in another cell
    By gibson2503 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2013, 12:05 PM
  5. Replies: 6
    Last Post: 10-30-2011, 04:14 AM
  6. Replies: 1
    Last Post: 05-29-2005, 07:05 PM
  7. Cell referenced to current date
    By stryker in forum Excel General
    Replies: 5
    Last Post: 02-03-2005, 09:31 AM

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