Thats perfect, thanks Marcus
I had to change a few minor things because its so hard to explain exactly
whats required without writing pages, but I really had no idea where to
start.
I added some nested If's because there are actually some other sheets in the
workbook
For Each s In Sheets
If s.Name <> "Current" Then
If s.Name <> "Clients" Then
If s.Name <> "FILTER" Then
Thanks again
Bob
"marcus" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Bob
>
> I hope I have understood correctly. This code filters data on
> criteria in Column 3 with criteria of "C", then copies the data to the
> first non blank cell in the Current sheet. I hope this helps, you
> should be able to manipulate it as you wish. Good luck.
>
> Marcus
>
> Sub CopytoSheet()
>
> Dim s As Worksheet
> Dim x As Long
> Dim y As Long
>
> For Each s In Sheets
> If s.Name <> "Current" Then
> s.Activate
> s.AutoFilterMode = False
> 'Check for filter on page.
> If Not ActiveSheet.AutoFilterMode Then
> ActiveSheet.Rows("7:7").AutoFilter
> End If
> Selection.AutoFilter Field:=3, Criteria1:="C" ' filter criteria
> y = Range("a65536").End(xlUp).Row + 1
> Range("A8:T" & y).Copy
> Sheets("Current").Select
> x = Range("A65536").End(xlUp).Row + 1
> Range("A" & x).Select
> ActiveSheet.Paste
>
> End If
> Next
> End Sub
>
|