• Linked Files (Excel 2000)

    Author
    Topic
    #405496

    I have two excel files. Each cell in the second file is linked to the first by “=(filename.xls)Sheet1!A1)”, etc., I also have autofilter set to only view an “active” column on file 2.
    When I add a new row with “active” status to file1, file2 does not update until I select the filter again.

    Is there a way to have the second file automatically update when a new “active” row is added to the first excel file?

    Thank you.

    Viewing 1 reply thread
    Author
    Replies
    • #833606

      You could add code to worksheet activate event to filter on the appropriate column.

      So when you leave file 2 and change file1 status, then goto file 2, the macro would trigger (file2 is activated) and the column would be filtered

      Private Sub Worksheet_Activate()
          Range("A1").AutoFilter Field:=1, Criteria1:="active"
      End Sub

      Change the range, field number and criteria as appropriate.

      Steve

    • #833607

      You could add code to worksheet activate event to filter on the appropriate column.

      So when you leave file 2 and change file1 status, then goto file 2, the macro would trigger (file2 is activated) and the column would be filtered

      Private Sub Worksheet_Activate()
          Range("A1").AutoFilter Field:=1, Criteria1:="active"
      End Sub

      Change the range, field number and criteria as appropriate.

      Steve

    Viewing 1 reply thread
    Reply To: Linked Files (Excel 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: