Update or Refresh each time a change is made

R

Richard

I need only the unique records to show on sheet2. Is there
a way to update or refresh each time a change is made. If
so how would you write the formula in the Worksheet_Change
Data-Filter-Advanced Filter-List Range:Sheet2!$A:$A-unique
records only.
 
D

Don Guillett

Here is one I did for a client recently.

With Sheets("yoursheenamehere")
..Range("yourrangenamehere").AdvancedFilter Action:=xlFilterInPlace,
Unique:=True
..Range("yourrangenamehere").SpecialCells(xlCellTypeVisible).Copy
Sheets("destinationsheet").Range("b28").PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
If .FilterMode = True Then .ShowAllData
'.Rows(4).Hidden = True
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top