+ Reply to Thread
Results 1 to 3 of 3

view autofilter using cell refence as criteria

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    view autofilter using cell refence as criteria

    Need a button macro that will filter a worksheet but the first criteria of the autofilter function would be a cell reference from the original sheet

    the two record boxes Accidents and Incidents are using cell d6 to to determine display value of data recorded in worksheet FILE

    I am trying to filter the FILE entries by the driver but it will be determined by the content of cell D6 on the worksheet GUI

    I tried this but cannot get past the Criteria1 reference
    Please Login or Register  to view this content.
    any help appreciated

    test file attached will make it clearer
    Attached Files Attached Files
    Last edited by nigelog; 10-12-2010 at 12:23 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: view autofilter with with cell refence as criteria

    Hi,

    Simplify this by creating a named range for the data. called 'Data' i.e.
    Please Login or Register  to view this content.
    Now create a 4 cell criteria range named say 'Crit'

    Name Acc/Inc
    MURPHY PADDY Accident

    where cell 2,1, contains the formula =GUI!D6

    and now just use the following macro

    Please Login or Register  to view this content.
    See the attached file.

    HTH
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: view autofilter using cell refence as criteria

    Hi Richard, many thanks for looking into this

    that seems to be a workable solution. What I need to do after clicking the macro is view the FILE sheet and, after viewing, return to the GUI sheet but restore the FILE sheet to show all data for the next action

    I will be able to tailor the rest for the incidents etc (I hope)

    rgds nigel

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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