Creating a New Sheet with all relevant data from a different table.

steveh8204

Board Regular
Joined
Aug 20, 2018
Messages
151
Hi,

is it possible to create code to go through a table and if a value is met transfer the whole contents of the row into a new sheet totalling all relevant values.

For example creating a sheet with all the row information for every row that has the value in Column F higher than 0?

Thanks in advance.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Without knowing the sheet names and exactly how your data is organized, try this macro.
Code:
Sub CopyData()
    Application.ScreenUpdating = False
    Dim LastRow As Long, srcWS As Worksheet
    Set srcWS = Sheets("Sheet1")
    With srcWS
        LastRow = .Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
        .Range("F1:F" & LastRow).AutoFilter Field:=1, Criteria1:=">0"
        .Range("F2:F" & LastRow).SpecialCells(xlCellTypeVisible).EntireRow.Copy Sheets.Add(after:=Sheets(Sheets.Count)).Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
        .Range("F1").AutoFilter
    End With
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
Is this what you want

DATA IN Sheet1

Excel 2016 (Windows) 32 bit
[Table="width:, class:head"][tr=bgcolor:#E0E0F0][th] [/th][th]
A
[/th][th]
B
[/th][th]
C
[/th][th]
D
[/th][th]
E
[/th][th]
F
[/th][th]
G
[/th][th]
H
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
1
[/td][td]Name[/td][td]Date[/td][td]Type[/td][td]Class[/td][td]Due[/td][td]Value[/td][td]Code[/td][td]Area[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
2
[/td][td]name01[/td][td]
18/04/2019​
[/td][td]RX[/td][td]
3​
[/td][td]
18/05/2019​
[/td][td]
286​
[/td][td]WZAV[/td][td]SW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
3
[/td][td]name02[/td][td]
16/04/2019​
[/td][td]AL[/td][td]
1​
[/td][td]
16/05/2019​
[/td][td]
593​
[/td][td]LPIS[/td][td]NW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
4
[/td][td]name03[/td][td]
13/04/2019​
[/td][td]NL[/td][td]
3​
[/td][td]
13/05/2019​
[/td][td]
413​
[/td][td]PMZU[/td][td]SE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
5
[/td][td]name04[/td][td]
15/04/2019​
[/td][td]VC[/td][td]
5​
[/td][td]
15/05/2019​
[/td][td=bgcolor:#FFFF00]
-27​
[/td][td]VKCJ[/td][td]NE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
6
[/td][td]name05[/td][td]
16/04/2019​
[/td][td]YO[/td][td]
7​
[/td][td]
16/05/2019​
[/td][td=bgcolor:#FFFF00]
-93​
[/td][td]OYSY[/td][td]SW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
7
[/td][td]name06[/td][td]
18/04/2019​
[/td][td]XC[/td][td]
8​
[/td][td]
18/05/2019​
[/td][td]
86​
[/td][td]BXIE[/td][td]NW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
8
[/td][td]name07[/td][td]
11/04/2019​
[/td][td]DI[/td][td]
5​
[/td][td]
11/05/2019​
[/td][td]
255​
[/td][td]IGTG[/td][td]SE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
9
[/td][td]name08[/td][td]
16/04/2019​
[/td][td]OF[/td][td]
2​
[/td][td]
16/05/2019​
[/td][td]
95​
[/td][td]DQQH[/td][td]NE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
10
[/td][td]name09[/td][td]
16/04/2019​
[/td][td]WK[/td][td]
9​
[/td][td]
16/05/2019​
[/td][td=bgcolor:#FFFF00]
-117​
[/td][td]DULF[/td][td]SW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
11
[/td][td]name10[/td][td]
08/04/2019​
[/td][td]KD[/td][td]
5​
[/td][td]
08/05/2019​
[/td][td]
522​
[/td][td]BPVA[/td][td]NW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
12
[/td][td]name11[/td][td]
09/04/2019​
[/td][td]HX[/td][td]
6​
[/td][td]
09/05/2019​
[/td][td=bgcolor:#FFFF00]
-136​
[/td][td]RMTP[/td][td]SE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
13
[/td][td]name12[/td][td]
15/04/2019​
[/td][td]QQ[/td][td]
3​
[/td][td]
15/05/2019​
[/td][td]
63​
[/td][td]DBCC[/td][td]NE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
14
[/td][td]name13[/td][td]
13/04/2019​
[/td][td]NC[/td][td]
5​
[/td][td]
13/05/2019​
[/td][td]
685​
[/td][td]UFEC[/td][td]SW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
15
[/td][td]name14[/td][td]
10/04/2019​
[/td][td]QY[/td][td]
1​
[/td][td]
10/05/2019​
[/td][td=bgcolor:#FFFF00]
-106​
[/td][td]BTDQ[/td][td]NW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
16
[/td][td]name15[/td][td]
14/04/2019​
[/td][td]QE[/td][td]
9​
[/td][td]
14/05/2019​
[/td][td]
297​
[/td][td]IQQZ[/td][td]SE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
17
[/td][td]name16[/td][td]
18/04/2019​
[/td][td]TI[/td][td]
2​
[/td][td]
18/05/2019​
[/td][td]
586​
[/td][td]ATRM[/td][td]NE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
18
[/td][td]name17[/td][td]
11/04/2019​
[/td][td]TN[/td][td]
3​
[/td][td]
11/05/2019​
[/td][td]
176​
[/td][td]LTXU[/td][td]SW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
19
[/td][td]name18[/td][td]
12/04/2019​
[/td][td]XN[/td][td]
2​
[/td][td]
12/05/2019​
[/td][td]
33​
[/td][td]HWTA[/td][td]NW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
20
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
21
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: Sheet1[/td][/tr][/table]


CREATED SHEET

Excel 2016 (Windows) 32 bit
[Table="width:, class:head"][tr=bgcolor:#E0E0F0][th] [/th][th]
A
[/th][th]
B
[/th][th]
C
[/th][th]
D
[/th][th]
E
[/th][th]
F
[/th][th]
G
[/th][th]
H
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
1
[/td][td]Name[/td][td]Date[/td][td]Type[/td][td]Class[/td][td]Due[/td][td]Value[/td][td]Code[/td][td]Area[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
2
[/td][td]name01[/td][td]
18/04/2019​
[/td][td]RX[/td][td]
3​
[/td][td]
18/05/2019​
[/td][td]
286​
[/td][td]WZAV[/td][td]SW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
3
[/td][td]name02[/td][td]
16/04/2019​
[/td][td]AL[/td][td]
1​
[/td][td]
16/05/2019​
[/td][td]
593​
[/td][td]LPIS[/td][td]NW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
4
[/td][td]name03[/td][td]
13/04/2019​
[/td][td]NL[/td][td]
3​
[/td][td]
13/05/2019​
[/td][td]
413​
[/td][td]PMZU[/td][td]SE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
5
[/td][td]name06[/td][td]
18/04/2019​
[/td][td]XC[/td][td]
8​
[/td][td]
18/05/2019​
[/td][td]
86​
[/td][td]BXIE[/td][td]NW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
6
[/td][td]name07[/td][td]
11/04/2019​
[/td][td]DI[/td][td]
5​
[/td][td]
11/05/2019​
[/td][td]
255​
[/td][td]IGTG[/td][td]SE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
7
[/td][td]name08[/td][td]
16/04/2019​
[/td][td]OF[/td][td]
2​
[/td][td]
16/05/2019​
[/td][td]
95​
[/td][td]DQQH[/td][td]NE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
8
[/td][td]name10[/td][td]
08/04/2019​
[/td][td]KD[/td][td]
5​
[/td][td]
08/05/2019​
[/td][td]
522​
[/td][td]BPVA[/td][td]NW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
9
[/td][td]name12[/td][td]
15/04/2019​
[/td][td]QQ[/td][td]
3​
[/td][td]
15/05/2019​
[/td][td]
63​
[/td][td]DBCC[/td][td]NE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
10
[/td][td]name13[/td][td]
13/04/2019​
[/td][td]NC[/td][td]
5​
[/td][td]
13/05/2019​
[/td][td]
685​
[/td][td]UFEC[/td][td]SW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
11
[/td][td]name15[/td][td]
14/04/2019​
[/td][td]QE[/td][td]
9​
[/td][td]
14/05/2019​
[/td][td]
297​
[/td][td]IQQZ[/td][td]SE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
12
[/td][td]name16[/td][td]
18/04/2019​
[/td][td]TI[/td][td]
2​
[/td][td]
18/05/2019​
[/td][td]
586​
[/td][td]ATRM[/td][td]NE[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
13
[/td][td]name17[/td][td]
11/04/2019​
[/td][td]TN[/td][td]
3​
[/td][td]
11/05/2019​
[/td][td]
176​
[/td][td]LTXU[/td][td]SW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
14
[/td][td]name18[/td][td]
12/04/2019​
[/td][td]XN[/td][td]
2​
[/td][td]
12/05/2019​
[/td][td]
33​
[/td][td]HWTA[/td][td]NW[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
15
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
16
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
17
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: Sheet1 (2)[/td][/tr][/table]

VBA

Code:
Sub Filter_and_Copy()
    Dim ws As Worksheet, rng As Range
    Sheets("[COLOR=#ff0000]Sheet1[/COLOR]").Copy after:=Sheets(Sheets.Count)
    Set ws = Sheets(Sheets.Count)
    ws.AutoFilterMode = False
    Set rng = ws.Range("A:Z")
    rng.AutoFilter Field:=6, Criteria1:="<=0", Operator:=xlAnd
    ws.Rows("2:" & rng.Rows.Count).SpecialCells(xlCellTypeVisible).EntireRow.Delete
    ws.AutoFilterMode = False
End Sub
 
Upvote 0
Without knowing the sheet names and exactly how your data is organized, try this macro.
Code:
Sub CopyData()
    Application.ScreenUpdating = False
    Dim LastRow As Long, srcWS As Worksheet
    Set srcWS = Sheets("Sheet1")
    With srcWS
        LastRow = .Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
        .Range("F1:F" & LastRow).AutoFilter Field:=1, Criteria1:=">0"
        .Range("F2:F" & LastRow).SpecialCells(xlCellTypeVisible).EntireRow.Copy Sheets.Add(after:=Sheets(Sheets.Count)).Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
        .Range("F1").AutoFilter
    End With
    Application.ScreenUpdating = True
End Sub

Nice one, thanks. This seems to do the job. Is there a way to get this to copy the data to a pre-formatted sheet that already exists though as opposed to a new one. Otherwise the data is all squashed up.

Thanks very much for your help.
 
Upvote 0
Is this what you want

DATA IN Sheet1

Excel 2016 (Windows) 32 bit
[TABLE="class: head"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[TH][/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]A[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]B[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]C[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]D[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]E[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]F[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]G[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]H[/COLOR]​
[/TH]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]1[/COLOR]​
[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Type[/TD]
[TD]Class[/TD]
[TD]Due[/TD]
[TD]Value[/TD]
[TD]Code[/TD]
[TD]Area[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]2[/COLOR]​
[/TD]
[TD]name01[/TD]
[TD]
18/04/2019​
[/TD]
[TD]RX[/TD]
[TD]
3​
[/TD]
[TD]
18/05/2019​
[/TD]
[TD]
286​
[/TD]
[TD]WZAV[/TD]
[TD]SW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]3[/COLOR]​
[/TD]
[TD]name02[/TD]
[TD]
16/04/2019​
[/TD]
[TD]AL[/TD]
[TD]
1​
[/TD]
[TD]
16/05/2019​
[/TD]
[TD]
593​
[/TD]
[TD]LPIS[/TD]
[TD]NW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]4[/COLOR]​
[/TD]
[TD]name03[/TD]
[TD]
13/04/2019​
[/TD]
[TD]NL[/TD]
[TD]
3​
[/TD]
[TD]
13/05/2019​
[/TD]
[TD]
413​
[/TD]
[TD]PMZU[/TD]
[TD]SE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]5[/COLOR]​
[/TD]
[TD]name04[/TD]
[TD]
15/04/2019​
[/TD]
[TD]VC[/TD]
[TD]
5​
[/TD]
[TD]
15/05/2019​
[/TD]
[TD="bgcolor: #FFFF00"]
-27​
[/TD]
[TD]VKCJ[/TD]
[TD]NE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]6[/COLOR]​
[/TD]
[TD]name05[/TD]
[TD]
16/04/2019​
[/TD]
[TD]YO[/TD]
[TD]
7​
[/TD]
[TD]
16/05/2019​
[/TD]
[TD="bgcolor: #FFFF00"]
-93​
[/TD]
[TD]OYSY[/TD]
[TD]SW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]7[/COLOR]​
[/TD]
[TD]name06[/TD]
[TD]
18/04/2019​
[/TD]
[TD]XC[/TD]
[TD]
8​
[/TD]
[TD]
18/05/2019​
[/TD]
[TD]
86​
[/TD]
[TD]BXIE[/TD]
[TD]NW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]8[/COLOR]​
[/TD]
[TD]name07[/TD]
[TD]
11/04/2019​
[/TD]
[TD]DI[/TD]
[TD]
5​
[/TD]
[TD]
11/05/2019​
[/TD]
[TD]
255​
[/TD]
[TD]IGTG[/TD]
[TD]SE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]9[/COLOR]​
[/TD]
[TD]name08[/TD]
[TD]
16/04/2019​
[/TD]
[TD]OF[/TD]
[TD]
2​
[/TD]
[TD]
16/05/2019​
[/TD]
[TD]
95​
[/TD]
[TD]DQQH[/TD]
[TD]NE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]10[/COLOR]​
[/TD]
[TD]name09[/TD]
[TD]
16/04/2019​
[/TD]
[TD]WK[/TD]
[TD]
9​
[/TD]
[TD]
16/05/2019​
[/TD]
[TD="bgcolor: #FFFF00"]
-117​
[/TD]
[TD]DULF[/TD]
[TD]SW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]11[/COLOR]​
[/TD]
[TD]name10[/TD]
[TD]
08/04/2019​
[/TD]
[TD]KD[/TD]
[TD]
5​
[/TD]
[TD]
08/05/2019​
[/TD]
[TD]
522​
[/TD]
[TD]BPVA[/TD]
[TD]NW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]12[/COLOR]​
[/TD]
[TD]name11[/TD]
[TD]
09/04/2019​
[/TD]
[TD]HX[/TD]
[TD]
6​
[/TD]
[TD]
09/05/2019​
[/TD]
[TD="bgcolor: #FFFF00"]
-136​
[/TD]
[TD]RMTP[/TD]
[TD]SE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]13[/COLOR]​
[/TD]
[TD]name12[/TD]
[TD]
15/04/2019​
[/TD]
[TD]QQ[/TD]
[TD]
3​
[/TD]
[TD]
15/05/2019​
[/TD]
[TD]
63​
[/TD]
[TD]DBCC[/TD]
[TD]NE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]14[/COLOR]​
[/TD]
[TD]name13[/TD]
[TD]
13/04/2019​
[/TD]
[TD]NC[/TD]
[TD]
5​
[/TD]
[TD]
13/05/2019​
[/TD]
[TD]
685​
[/TD]
[TD]UFEC[/TD]
[TD]SW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]15[/COLOR]​
[/TD]
[TD]name14[/TD]
[TD]
10/04/2019​
[/TD]
[TD]QY[/TD]
[TD]
1​
[/TD]
[TD]
10/05/2019​
[/TD]
[TD="bgcolor: #FFFF00"]
-106​
[/TD]
[TD]BTDQ[/TD]
[TD]NW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]16[/COLOR]​
[/TD]
[TD]name15[/TD]
[TD]
14/04/2019​
[/TD]
[TD]QE[/TD]
[TD]
9​
[/TD]
[TD]
14/05/2019​
[/TD]
[TD]
297​
[/TD]
[TD]IQQZ[/TD]
[TD]SE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]17[/COLOR]​
[/TD]
[TD]name16[/TD]
[TD]
18/04/2019​
[/TD]
[TD]TI[/TD]
[TD]
2​
[/TD]
[TD]
18/05/2019​
[/TD]
[TD]
586​
[/TD]
[TD]ATRM[/TD]
[TD]NE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]18[/COLOR]​
[/TD]
[TD]name17[/TD]
[TD]
11/04/2019​
[/TD]
[TD]TN[/TD]
[TD]
3​
[/TD]
[TD]
11/05/2019​
[/TD]
[TD]
176​
[/TD]
[TD]LTXU[/TD]
[TD]SW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]19[/COLOR]​
[/TD]
[TD]name18[/TD]
[TD]
12/04/2019​
[/TD]
[TD]XN[/TD]
[TD]
2​
[/TD]
[TD]
12/05/2019​
[/TD]
[TD]
33​
[/TD]
[TD]HWTA[/TD]
[TD]NW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]20[/COLOR]​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]21[/COLOR]​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet1[/TD]
[/TR]
</tbody>[/TABLE]


CREATED SHEET

Excel 2016 (Windows) 32 bit
[TABLE="class: head"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[TH][/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]A[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]B[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]C[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]D[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]E[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]F[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]G[/COLOR]​
[/TH]
[TH]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]H[/COLOR]​
[/TH]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]1[/COLOR]​
[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Type[/TD]
[TD]Class[/TD]
[TD]Due[/TD]
[TD]Value[/TD]
[TD]Code[/TD]
[TD]Area[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]2[/COLOR]​
[/TD]
[TD]name01[/TD]
[TD]
18/04/2019​
[/TD]
[TD]RX[/TD]
[TD]
3​
[/TD]
[TD]
18/05/2019​
[/TD]
[TD]
286​
[/TD]
[TD]WZAV[/TD]
[TD]SW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]3[/COLOR]​
[/TD]
[TD]name02[/TD]
[TD]
16/04/2019​
[/TD]
[TD]AL[/TD]
[TD]
1​
[/TD]
[TD]
16/05/2019​
[/TD]
[TD]
593​
[/TD]
[TD]LPIS[/TD]
[TD]NW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]4[/COLOR]​
[/TD]
[TD]name03[/TD]
[TD]
13/04/2019​
[/TD]
[TD]NL[/TD]
[TD]
3​
[/TD]
[TD]
13/05/2019​
[/TD]
[TD]
413​
[/TD]
[TD]PMZU[/TD]
[TD]SE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]5[/COLOR]​
[/TD]
[TD]name06[/TD]
[TD]
18/04/2019​
[/TD]
[TD]XC[/TD]
[TD]
8​
[/TD]
[TD]
18/05/2019​
[/TD]
[TD]
86​
[/TD]
[TD]BXIE[/TD]
[TD]NW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]6[/COLOR]​
[/TD]
[TD]name07[/TD]
[TD]
11/04/2019​
[/TD]
[TD]DI[/TD]
[TD]
5​
[/TD]
[TD]
11/05/2019​
[/TD]
[TD]
255​
[/TD]
[TD]IGTG[/TD]
[TD]SE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]7[/COLOR]​
[/TD]
[TD]name08[/TD]
[TD]
16/04/2019​
[/TD]
[TD]OF[/TD]
[TD]
2​
[/TD]
[TD]
16/05/2019​
[/TD]
[TD]
95​
[/TD]
[TD]DQQH[/TD]
[TD]NE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]8[/COLOR]​
[/TD]
[TD]name10[/TD]
[TD]
08/04/2019​
[/TD]
[TD]KD[/TD]
[TD]
5​
[/TD]
[TD]
08/05/2019​
[/TD]
[TD]
522​
[/TD]
[TD]BPVA[/TD]
[TD]NW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]9[/COLOR]​
[/TD]
[TD]name12[/TD]
[TD]
15/04/2019​
[/TD]
[TD]QQ[/TD]
[TD]
3​
[/TD]
[TD]
15/05/2019​
[/TD]
[TD]
63​
[/TD]
[TD]DBCC[/TD]
[TD]NE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]10[/COLOR]​
[/TD]
[TD]name13[/TD]
[TD]
13/04/2019​
[/TD]
[TD]NC[/TD]
[TD]
5​
[/TD]
[TD]
13/05/2019​
[/TD]
[TD]
685​
[/TD]
[TD]UFEC[/TD]
[TD]SW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]11[/COLOR]​
[/TD]
[TD]name15[/TD]
[TD]
14/04/2019​
[/TD]
[TD]QE[/TD]
[TD]
9​
[/TD]
[TD]
14/05/2019​
[/TD]
[TD]
297​
[/TD]
[TD]IQQZ[/TD]
[TD]SE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]12[/COLOR]​
[/TD]
[TD]name16[/TD]
[TD]
18/04/2019​
[/TD]
[TD]TI[/TD]
[TD]
2​
[/TD]
[TD]
18/05/2019​
[/TD]
[TD]
586​
[/TD]
[TD]ATRM[/TD]
[TD]NE[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]13[/COLOR]​
[/TD]
[TD]name17[/TD]
[TD]
11/04/2019​
[/TD]
[TD]TN[/TD]
[TD]
3​
[/TD]
[TD]
11/05/2019​
[/TD]
[TD]
176​
[/TD]
[TD]LTXU[/TD]
[TD]SW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]14[/COLOR]​
[/TD]
[TD]name18[/TD]
[TD]
12/04/2019​
[/TD]
[TD]XN[/TD]
[TD]
2​
[/TD]
[TD]
12/05/2019​
[/TD]
[TD]
33​
[/TD]
[TD]HWTA[/TD]
[TD]NW[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]15[/COLOR]​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]16[/COLOR]​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]17[/COLOR]​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet1 (2)[/TD]
[/TR]
</tbody>[/TABLE]

VBA

Code:
Sub Filter_and_Copy()
    Dim ws As Worksheet, rng As Range
    Sheets("[COLOR=#ff0000]Sheet1[/COLOR]").Copy after:=Sheets(Sheets.Count)
    Set ws = Sheets(Sheets.Count)
    ws.AutoFilterMode = False
    Set rng = ws.Range("A:Z")
    rng.AutoFilter Field:=6, Criteria1:="<=0", Operator:=xlAnd
    ws.Rows("2:" & rng.Rows.Count).SpecialCells(xlCellTypeVisible).EntireRow.Delete
    ws.AutoFilterMode = False
End Sub

Thats exactly what I need but I've had a few problems when I've run the code. Firstly an error message came up saying "The name Vigoraws already exists, click yes to use that name etc" which was kind of strange as that isn't the name of any of the sheets but is actually the name of one in a different File I didn't even have open.

Theres a few sheets with different names in case that could be a part of the problem.
 
Upvote 0
Insert this line of code:
Code:
Columns.AutoFit
below this line:
Code:
.Range("F1").AutoFilter
If this change doesn't do what you want and if you want to copy the data to an existing sheet, I would need to know the name of that sheet.
 
Upvote 0
Insert this line of code:
Code:
Columns.AutoFit
below this line:
Code:
.Range("F1").AutoFilter
If this change doesn't do what you want and if you want to copy the data to an existing sheet, I would need to know the name of that sheet.

Thanks for the quick reply. I could do with it being in an existing sheet as I need to create Macros to manipulate Data in that sheet. The sheet name is "GraphicWIP".

Thanks again.
 
Upvote 0
Try:
Code:
Sub CopyData()
    Application.ScreenUpdating = False
    Dim LastRow As Long, srcWS As Worksheet
    Set srcWS = Sheets("Sheet1")
    With srcWS
        LastRow = .Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
        .Range("F1:F" & LastRow).AutoFilter Field:=1, Criteria1:=">0"
        .Range("F2:F" & LastRow).SpecialCells(xlCellTypeVisible).EntireRow.Copy Sheets("GraphicWIP").Cells(Sheets("GraphicWIP").Rows.Count, "A").End(xlUp).Offset(1, 0)
        .Range("F1").AutoFilter
    End With
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
Try:
Code:
Sub CopyData()
    Application.ScreenUpdating = False
    Dim LastRow As Long, srcWS As Worksheet
    Set srcWS = Sheets("Sheet1")
    With srcWS
        LastRow = .Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
        .Range("F1:F" & LastRow).AutoFilter Field:=1, Criteria1:=">0"
        .Range("F2:F" & LastRow).SpecialCells(xlCellTypeVisible).EntireRow.Copy Sheets("GraphicWIP").Cells(Sheets("GraphicWIP").Rows.Count, "A").End(xlUp).Offset(1, 0)
        .Range("F1").AutoFilter
    End With
    Application.ScreenUpdating = True
End Sub

Nice one, thats perfect. I can adapt that easily to a few other files that will be very handy for.

Thanks again for your help, it has been very much appreciated.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top