+ Reply to Thread
Results 1 to 2 of 2

Autorun Macro to auto filter on cell value change

  1. #1
    Registered User
    Join Date
    03-08-2012
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    13

    Autorun Macro to auto filter on cell value change

    Hi all,
    I have a small problem. I have a workbook with 2 sheets - Models and Details. I would like to have a macro to autorun and autofilter Model worksheet by column A each time I input any value in Details worksheet. I attach a sample workbook as the code I have is not working. Can anybody assist please? Much appreciate any assistance.
    Thanks to all.
    JJM
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-02-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Autorun Macro to auto filter on cell value change

    I propose the creation of a table pivotable (Tab2), on new sheet (Teste), and a procedure for updating the sheet "Teste", each time a change is made in sheet (Details).


    About the procedure I wrote:

    Private Sub Worksheet_Change(ByVal Target As Range)
    Sheets("Teste").PivotTables("Tab2").RefreshTable
    End Sub


    I’m sending an attached example, I hope to help.



    AUTORUN AUTOFILTER MACRO.xlsm

+ 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