I've come along way with this code to get the first pass to work, however when it has multiple textboxes filled, the code goes off on a tangent and places data oddly.
Sorry for the lengthy code.
Data for first sheet appears as follows:
Sheet below is the first pass of code prior to loop
VBA Code:
'exit sub if textbox is empty
If var = "" Then
GoTo done2:
End If
SQL = "SELECT * FROM RIDatabase WHERE [Part Number] = '" & var & "'"
'Create the ADODB recordset object.
Set rs = New ADODB.Recordset 'assign memory to the recordset
rs.Open SQL, cnn
'Check if the recordset is empty.
If rs.EOF And rs.BOF Then
'Close the recordset and the connection.
rs.Close
cnn.Close
'clear memory
Set rs = Nothing
Set cnn = Nothing
'Enable the screen.
Application.ScreenUpdating = True
'In case of an empty recordset display an error.
MsgBox "There are no records in the recordset!", vbCritical, "No Records"
Exit Sub
End If
Worksheets("Data").AutoFilterMode = False
Worksheets("Data").range("A2:ZZ10000").ClearContents
'Write the recordset values in the sheet.
Worksheets("Data").range("A2").CopyFromRecordset rs
'transfer from data tab to fai log
Worksheets("data").Activate
'Dim cell As Range
Dim rng As range
Dim shtSrc As Worksheet, shtDest As Worksheet
Dim ite
Dim myDate As Date
myDate = Application.Max(Columns(1))
ActiveSheet.AutoFilterMode = False
Columns(1).AutoFilter Field:=1, Criteria1:=Format(myDate, [A2].NumberFormat)
Set shtSrc = Worksheets("Data") ' Sets "Sheet1" sheet as source sheet
Set shtDest = Worksheets("FAI") 'Sets "Sheet2." sheet as destination sheet
Set rng = range("B2", range("B65536").End(xlUp)).SpecialCells(xlCellTypeVisible)
ite = Me("Part" & poi)
Sheets("FAI").Copy After:=Sheets("Capability Study")
ActiveSheet.Name = (ite & " - " & poi)
For Each cell In rng
If cell = ite Then
With Worksheets("data")
'CHECK VAL
If Sheets(ite & " - " & poi).range("C4").Value <> "" Then
Exit For
End If
'Add Item
With .range("B2", .Cells(.Rows.Count, 2).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C4").Value = .Value
End With
With .range("C2", .Cells(.Rows.Count, 3).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C3").Value = .Value
End With
With .range("D2", .Cells(.Rows.Count, 4).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("K7").Value = .Value
End With
With .range("Z1", .Cells(.Rows.Count, 26).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A9").Value = .Value
End With
With .range("AA1", .Cells(.Rows.Count, 27).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A10").Value = .Value
End With
With .range("AB1", .Cells(.Rows.Count, 28).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A11").Value = .Value
End With
With .range("AC1", .Cells(.Rows.Count, 29).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A12").Value = .Value
End With
With .range("AD1", .Cells(.Rows.Count, 30).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A13").Value = .Value
End With
With .range("AE1", .Cells(.Rows.Count, 31).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A14").Value = .Value
End With
With .range("AF1", .Cells(.Rows.Count, 32).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A15").Value = .Value
End With
With .range("AG1", .Cells(.Rows.Count, 33).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A16").Value = .Value
End With
With .range("AH1", .Cells(.Rows.Count, 34).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A17").Value = .Value
End With
With .range("AI1", .Cells(.Rows.Count, 35).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A18").Value = .Value
End With
With .range("AJ1", .Cells(.Rows.Count, 36).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A19").Value = .Value
End With
With .range("AK1", .Cells(.Rows.Count, 37).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A20").Value = .Value
End With
With .range("AL1", .Cells(.Rows.Count, 38).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A21").Value = .Value
End With
With .range("AM1", .Cells(.Rows.Count, 39).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A22").Value = .Value
End With
With .range("AN1", .Cells(.Rows.Count, 40).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A23").Value = .Value
End With
With .range("AO1", .Cells(.Rows.Count, 41).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A24").Value = .Value
End With
With .range("AP1", .Cells(.Rows.Count, 42).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A25").Value = .Value
End With
With .range("AQ1", .Cells(.Rows.Count, 43).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("A26").Value = .Value
End With
'Add Nominal
With .range("CL2", .Cells(.Rows.Count, 90).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B9").Value = .Value
End With
With .range("CO2", .Cells(.Rows.Count, 93).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B10").Value = .Value
End With
With .range("CR2", .Cells(.Rows.Count, 96).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B11").Value = .Value
End With
With .range("CU2", .Cells(.Rows.Count, 99).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B12").Value = .Value
End With
With .range("CX2", .Cells(.Rows.Count, 102).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B13").Value = .Value
End With
With .range("DA2", .Cells(.Rows.Count, 105).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B14").Value = .Value
End With
With .range("DD2", .Cells(.Rows.Count, 108).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B15").Value = .Value
End With
With .range("DG2", .Cells(.Rows.Count, 111).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B16").Value = .Value
End With
With .range("DJ2", .Cells(.Rows.Count, 114).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B17").Value = .Value
End With
With .range("DM2", .Cells(.Rows.Count, 117).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B18").Value = .Value
End With
With .range("DP2", .Cells(.Rows.Count, 120).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B19").Value = .Value
End With
With .range("DS2", .Cells(.Rows.Count, 123).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B20").Value = .Value
End With
With .range("DV2", .Cells(.Rows.Count, 126).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B21").Value = .Value
End With
With .range("DY2", .Cells(.Rows.Count, 129).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B22").Value = .Value
End With
With .range("EB2", .Cells(.Rows.Count, 132).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B23").Value = .Value
End With
With .range("EE2", .Cells(.Rows.Count, 135).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B24").Value = .Value
End With
With .range("EH2", .Cells(.Rows.Count, 138).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B25").Value = .Value
End With
With .range("EK2", .Cells(.Rows.Count, 141).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("B26").Value = .Value
End With
'Add Upper Limit
With .range("CM2", .Cells(.Rows.Count, 91).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C9").Value = .Value
End With
With .range("CP2", .Cells(.Rows.Count, 94).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C10").Value = .Value
End With
With .range("CS2", .Cells(.Rows.Count, 97).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C11").Value = .Value
End With
With .range("CV2", .Cells(.Rows.Count, 100).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C12").Value = .Value
End With
With .range("CY2", .Cells(.Rows.Count, 103).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C13").Value = .Value
End With
With .range("DB2", .Cells(.Rows.Count, 106).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C14").Value = .Value
End With
With .range("DE2", .Cells(.Rows.Count, 109).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C15").Value = .Value
End With
With .range("DH2", .Cells(.Rows.Count, 112).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C16").Value = .Value
End With
With .range("DK2", .Cells(.Rows.Count, 115).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C17").Value = .Value
End With
With .range("DN2", .Cells(.Rows.Count, 118).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C18").Value = .Value
End With
With .range("DQ2", .Cells(.Rows.Count, 121).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C19").Value = .Value
End With
With .range("DT2", .Cells(.Rows.Count, 124).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C20").Value = .Value
End With
With .range("DW2", .Cells(.Rows.Count, 127).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C21").Value = .Value
End With
With .range("DZ2", .Cells(.Rows.Count, 130).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C22").Value = .Value
End With
With .range("EC2", .Cells(.Rows.Count, 133).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C23").Value = .Value
End With
With .range("EF2", .Cells(.Rows.Count, 136).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C24").Value = .Value
End With
With .range("EI2", .Cells(.Rows.Count, 139).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C25").Value = .Value
End With
With .range("EL2", .Cells(.Rows.Count, 142).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("C26").Value = .Value
End With
'Add Lower Limit
With .range("CK2", .Cells(.Rows.Count, 89).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D9").Value = .Value
End With
With .range("CN2", .Cells(.Rows.Count, 92).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D10").Value = .Value
End With
With .range("CQ2", .Cells(.Rows.Count, 95).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D11").Value = .Value
End With
With .range("CT2", .Cells(.Rows.Count, 98).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D12").Value = .Value
End With
With .range("CW2", .Cells(.Rows.Count, 101).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D13").Value = .Value
End With
With .range("CZ2", .Cells(.Rows.Count, 104).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D14").Value = .Value
End With
With .range("DC2", .Cells(.Rows.Count, 107).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D15").Value = .Value
End With
With .range("DF2", .Cells(.Rows.Count, 110).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D16").Value = .Value
End With
With .range("DI2", .Cells(.Rows.Count, 113).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D17").Value = .Value
End With
With .range("DL2", .Cells(.Rows.Count, 116).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D18").Value = .Value
End With
With .range("DO2", .Cells(.Rows.Count, 119).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D19").Value = .Value
End With
With .range("DR2", .Cells(.Rows.Count, 122).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D20").Value = .Value
End With
With .range("DU2", .Cells(.Rows.Count, 125).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D21").Value = .Value
End With
With .range("DX2", .Cells(.Rows.Count, 128).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D22").Value = .Value
End With
With .range("EA2", .Cells(.Rows.Count, 131).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D23").Value = .Value
End With
With .range("ED2", .Cells(.Rows.Count, 134).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D24").Value = .Value
End With
With .range("EG2", .Cells(.Rows.Count, 137).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D25").Value = .Value
End With
With .range("EJ2", .Cells(.Rows.Count, 140).End(xlUp)).SpecialCells(xlCellTypeVisible)
Sheets(ite & " - " & poi).range("D26").Value = .Value
End With
End With
End If
Next cell
For Each cell In rng
If cell = ite Then
On Error GoTo Catch1
Sheets(ite & " - " & poi).Select
GoTo Finally1
Catch1:
Sheets("FAI").Copy After:=Sheets("Capability Study")
ActiveSheet.Name = (ite & " - " & poi)
Finally1:
Dim K As Integer
Dim LRo As Long
With Worksheets("data")
If Sheets(ite & " - " & poi).range("F9").Value <> "" Then
Exit For
End If
Application.ScreenUpdating = False
'Find last row with data
LRo = .Cells(Rows.Count, "A").End(xlUp).Row
'Loop through all columns (Z - AK)
For K = 26 To 62
'Check to see if anything in cell
If .Cells(2, K) <> "" Then
'Copy/transpose column to row on output tab
.range(.Cells(2, K), .Cells(LRo, K)).Copy
Sheets(ite & " - " & poi).Cells(K - 17, "F").PasteSpecial Paste:=xlPasteValues, SkipBlanks:= _
False, Transpose:=True
Application.CutCopyMode = False
End If
Next K
End With
With range("F9:O26")
.NumberFormat = "General"
.Value = .Value
End With
End If
Next cell
'Close the recordset and the connection.
rs.Close
cnn.Close
'clear memory
Set rs = Nothing
Set cnn = Nothing
'loop
Next poi
'Close the recordset and the connection.
rs.Close
cnn.Close
'clear memory
Set rs = Nothing
Set cnn = Nothing
done2:
'Enable the screen.
Application.ScreenUpdating = True
'Inform the user that the macro was executed successfully.
MsgBox "Congratulation the data has been successfully Imported", vbInformation, "Import successful"
Worksheets("PSW").Activate
Unload Me
'error handler
On Error GoTo 0
Exit Sub
errHandler:
'clear memory
Set rs = Nothing
Set cnn = Nothing
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure Import_Data"
End Sub
Sorry for the lengthy code.
Data for first sheet appears as follows:
PPAP Template test (Repaired).xlsm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | AK | AL | AM | AN | AO | AP | AQ | AR | AS | AT | AU | AV | AW | AX | AY | AZ | BA | BB | BC | BD | BE | BF | BG | BH | BI | BJ | BK | BL | BM | BN | BO | BP | BQ | BR | BS | BT | BU | BV | BW | BX | BY | BZ | CA | CB | CC | CD | CE | CF | CG | CH | CI | CJ | CK | CL | CM | CN | CO | CP | CQ | CR | CS | CT | CU | CV | CW | CX | CY | CZ | DA | DB | DC | DD | DE | DF | DG | DH | DI | DJ | DK | DL | DM | DN | DO | DP | DQ | DR | DS | DT | DU | DV | DW | DX | DY | DZ | EA | EB | EC | ED | EE | EF | EG | EH | EI | EJ | EK | EL | EM | EN | EO | EP | EQ | ER | ES | ET | EU | EV | EW | EX | EY | EZ | FA | FB | FC | FD | FE | FF | FG | FH | FI | FJ | FK | FL | FM | FN | FO | FP | FQ | FR | FS | FT | FU | FV | FW | FX | FY | FZ | GA | GB | GC | GD | GE | GF | GG | GH | GI | GJ | GK | GL | GM | GN | GO | GP | GQ | GR | |||
1 | Date | Part Number | Supplier | Rev | RI Code | IPC Class | Laminate | Preprag | SolderMask | Finish | Shelf Life | Date Code | Layers | UL File | RoHS | FAI | Impedance Control Report | CoC | CA Prop 65 | IPC6012 | Electrical Test Report | Cross Section | Contamination Report | Sample Size | Reject Qty | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | AK | Solder Mask Tape Test | Gold Finger Tape Test | Shipment Damage | Fire Rating | Meets Cosmetic Spec | UL Stamp | Electrical Test Stamp | Silkscreen Legible | Paint Dots | Labels | 1 | 2 | 3 | 4 | Overall Pass/Fail | UL File Number | Comments | Vacuum Sealed | Desiccant Packs | Moisture Cards | Date Code Present | Solderability Test | Drawing Number | Drawing REV | UserName | Color | LL A | N A | UL A | LL B | N B | UL B | LL C | N C | UL C | LL D | N D | UL D | LL E | N E | UL E | LL F | N F | UL F | LL G | N G | UL G | LL H | N H | UL H | LL I | N I | UL I | LL J | N J | UL J | LL K | N K | UL K | LL L | N L | UL L | LL M | N M | UL M | LL N | N N | UL N | LL O | N O | UL O | LL P | N P | UL P | LL Q | N Q | UL Q | LL R | N R | UL R | LL S | N S | UL S | LL T | N T | UL T | LL U | N U | UL U | LL V | N V | UL V | LL W | N W | UL W | LL X | N X | UL X | LL Y | N Y | UL Y | LL Z | N Z | UL Z | LL AA | N AA | UL AA | LL AB | N AB | UL AB | LL AC | N AC | UL AC | LL AD | N AD | UL AD | LL AE | N AE | UL AE | LL AF | N AF | UL AF | LL AG | N AG | UL AG | LL AH | N AH | UL AH | LL AI | N AI | UL AI | LL AJ | N AJ | UL AJ | LL AK | N AK | UL AK | Lot Size | ||
2 | 5/3/2022 | C073061-D-F | Augur Metal Products, Inc. | D | E06 | No | No | No | No | 5-3-22 | No | NA | Received | NA | NA | NA | NA | NA | NA | NA | NA | 5 | 2 | 320.54 | 412.48 | 126.5 | 34.16 | 41.5 | 43.2 | 7.39 | 6.83 | 3.14 | 208.8 | 22.19 | 261 | 256.2 | 156.4 | 69.95 | 127.6 | 177.4 | 236.5 | Pass | Fail | J on RI form has wrong measurement compared to drawing. Drawing and my measurement came out correct | NA | C073061 | D | JulieS | 319.6 | 320.4 | 321.2 | 411.7 | 412.5 | 413.3 | 126.2 | 127 | 127.8 | 34.1 | 34.9 | 35.7 | 41.5 | 41.5 | 41.8 | 43 | 43.1 | 43.2 | 5.8 | 6.6 | 7.4 | 6.4 | 7.2 | 8 | 3 | 3.8 | 4.6 | 6.3 | 7.1 | 7.9 | 21.7 | 22.5 | 23.3 | 260.9 | 261.7 | 262.5 | 256.1 | 256.9 | 257.7 | 155.1 | 155.9 | 156.7 | 69.1 | 69.9 | 70.7 | 126.6 | 127.4 | 128.2 | 177.4 | 178.2 | 179 | 234.9 | 235.7 | 236.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 416 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 | 5/3/2022 | C073061-D-F | Augur Metal Products, Inc. | D | E06 | No | No | No | No | 5-3-22 | No | NA | Received | NA | NA | NA | NA | NA | NA | NA | NA | 5 | 2 | 321.1 | 413 | 127 | 34.6 | 41.6 | 43.2 | 6.4 | 6.89 | 3.51 | 208 | 22.3 | 261.1 | 256.3 | 156.3 | 69.1 | 127.7 | 178.24 | 235.4 | Pass | Pass | Pass | Pass | Fail | J on RI form has wrong measurement compared to drawing. Drawing and my measurement came out correct | NA | C073061 | D | JulieS | 319.6 | 320.4 | 321.2 | 411.7 | 412.5 | 413.3 | 126.2 | 127 | 127.8 | 34.1 | 34.9 | 35.7 | 41.5 | 41.5 | 41.8 | 43 | 43.1 | 43.2 | 5.8 | 6.6 | 7.4 | 6.4 | 7.2 | 8 | 3 | 3.8 | 4.6 | 6.3 | 7.1 | 7.9 | 21.7 | 22.5 | 23.3 | 260.9 | 261.7 | 262.5 | 256.1 | 256.9 | 257.7 | 155.1 | 155.9 | 156.7 | 69.1 | 69.9 | 70.7 | 126.6 | 127.4 | 128.2 | 177.4 | 178.2 | 179 | 234.9 | 235.7 | 236.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 416 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 | 5/3/2022 | C073061-D-F | Augur Metal Products, Inc. | D | E06 | No | No | No | No | 5-3-22 | No | NA | Received | NA | NA | NA | NA | NA | NA | NA | NA | 5 | 2 | 320.5 | 412.5 | 127 | 34.5 | 41.5 | 43 | 7.3 | 6.89 | 3.47 | 208.8 | 22.26 | 261 | 256.2 | 156.3 | 69.2 | 127.8 | 178.1 | 235.7 | Pass | Pass | Pass | Pass | Fail | J on RI form has wrong measurement compared to drawing. Drawing and my measurement came out correct | NA | C073061 | D | JulieS | 319.6 | 320.4 | 321.2 | 411.7 | 412.5 | 413.3 | 126.2 | 127 | 127.8 | 34.1 | 34.9 | 35.7 | 41.5 | 41.5 | 41.8 | 43 | 43.1 | 43.2 | 5.8 | 6.6 | 7.4 | 6.4 | 7.2 | 8 | 3 | 3.8 | 4.6 | 6.3 | 7.1 | 7.9 | 21.7 | 22.5 | 23.3 | 260.9 | 261.7 | 262.5 | 256.1 | 256.9 | 257.7 | 155.1 | 155.9 | 156.7 | 69.1 | 69.9 | 70.7 | 126.6 | 127.4 | 128.2 | 177.4 | 178.2 | 179 | 234.9 | 235.7 | 236.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 416 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | 5/3/2022 | C073061-D-F | Augur Metal Products, Inc. | D | E06 | No | No | No | No | 5-3-22 | No | NA | Received | NA | NA | NA | NA | NA | NA | NA | NA | 5 | 2 | 321.2 | 413 | 127 | 34.2 | 41.5 | 43.1 | 6.7 | 6.86 | 3.29 | 207.97 | 21.77 | 261 | 256.9 | 156.7 | 69.1 | 127.7 | 177.9 | 234.9 | Pass | Pass | Pass | Pass | Fail | J on RI form has wrong measurement compared to drawing. Drawing and my measurement came out correct | NA | C073061 | D | JulieS | 319.6 | 320.4 | 321.2 | 411.7 | 412.5 | 413.3 | 126.2 | 127 | 127.8 | 34.1 | 34.9 | 35.7 | 41.5 | 41.5 | 41.8 | 43 | 43.1 | 43.2 | 5.8 | 6.6 | 7.4 | 6.4 | 7.2 | 8 | 3 | 3.8 | 4.6 | 6.3 | 7.1 | 7.9 | 21.7 | 22.5 | 23.3 | 260.9 | 261.7 | 262.5 | 256.1 | 256.9 | 257.7 | 155.1 | 155.9 | 156.7 | 69.1 | 69.9 | 70.7 | 126.6 | 127.4 | 128.2 | 177.4 | 178.2 | 179 | 234.9 | 235.7 | 236.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 416 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6 | 5/3/2022 | C073061-D-F | Augur Metal Products, Inc. | D | E06 | No | No | No | No | 5-3-22 | No | NA | Received | NA | NA | NA | NA | NA | NA | NA | NA | 5 | 2 | 321 | 413 | 127.8 | 34.2 | 41.52 | 43.2 | 7.4 | 6.89 | 3.52 | 208.9 | 22.2 | 261 | 256.7 | 156.4 | 69.1 | 128 | 178.2 | 235.8 | Pass | Pass | Pass | Pass | Fail | J on RI form has wrong measurement compared to drawing. Drawing and my measurement came out correct | NA | C073061 | D | JulieS | 319.6 | 320.4 | 321.2 | 411.7 | 412.5 | 413.3 | 126.2 | 127 | 127.8 | 34.1 | 34.9 | 35.7 | 41.5 | 41.5 | 41.8 | 43 | 43.1 | 43.2 | 5.8 | 6.6 | 7.4 | 6.4 | 7.2 | 8 | 3 | 3.8 | 4.6 | 6.3 | 7.1 | 7.9 | 21.7 | 22.5 | 23.3 | 260.9 | 261.7 | 262.5 | 256.1 | 256.9 | 257.7 | 155.1 | 155.9 | 156.7 | 69.1 | 69.9 | 70.7 | 126.6 | 127.4 | 128.2 | 177.4 | 178.2 | 179 | 234.9 | 235.7 | 236.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 416 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data |
Sheet below is the first pass of code prior to loop
PPAP Template test (Repaired).xlsm | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | |||
1 | ||||||||||||||||||
2 | TEST RESULTS | |||||||||||||||||
3 | Supplier | Products, Inc. | Date Samples Made | |||||||||||||||
4 | Part Number: | C073061-D-F | Material | |||||||||||||||
5 | Part Name: | |||||||||||||||||
6 | Tool Number | Color | ||||||||||||||||
7 | Cavity Number | Design Record Change Level: | D | UL or other Safety Regulation | ||||||||||||||
8 | Item | Nominal | Upper Spec Limit | Lower Spec Limit | Method | Measurement Results (Data, 3 per non-critical, 10 per critical dimension per cavity) | ||||||||||||
9 | A | 320.400 | 321.200 | 319.600 | 320.54 | 321.1 | 320.5 | 321.2 | 321 | |||||||||
10 | B | 412.500 | 413.300 | 411.700 | 412.48 | 413 | 412.5 | 413 | 413 | |||||||||
11 | C | 127.000 | 127.800 | 126.20 | 126.5 | 127 | 127 | 127 | 127.8 | |||||||||
12 | D | 34.900 | 35.700 | 34.10 | 34.16 | 34.6 | 34.5 | 34.2 | 34.2 | |||||||||
13 | E | 41.500 | 41.800 | 41.50 | 41.5 | 41.6 | 41.5 | 41.5 | 41.52 | |||||||||
14 | F | 43.100 | 43.200 | 43.00 | 43.2 | 43.2 | 43 | 43.1 | 43.2 | |||||||||
15 | G | 6.600 | 7.400 | 5.80 | 7.39 | 6.4 | 7.3 | 6.7 | 7.4 | |||||||||
16 | H | 7.200 | 8.000 | 6.40 | 6.83 | 6.89 | 6.89 | 6.86 | 6.89 | |||||||||
17 | I | 3.800 | 4.600 | 3.00 | 3.14 | 3.51 | 3.47 | 3.29 | 3.52 | |||||||||
18 | J | 7.100 | 7.900 | 6.30 | 208.8 | 208 | 208.8 | 207.97 | 208.9 | |||||||||
19 | K | 22.500 | 23.300 | 21.70 | 22.19 | 22.3 | 22.26 | 21.77 | 22.2 | |||||||||
20 | L | 261.700 | 262.500 | 260.90 | 261 | 261.1 | 261 | 261 | 261 | |||||||||
21 | M | 256.90 | 257.70 | 256.10 | 256.2 | 256.3 | 256.2 | 256.9 | 256.7 | |||||||||
22 | N | 155.90 | 156.70 | 155.10 | 156.4 | 156.3 | 156.3 | 156.7 | 156.4 | |||||||||
23 | O | 69.90 | 70.70 | 69.10 | 69.95 | 69.1 | 69.2 | 69.1 | 69.1 | |||||||||
24 | P | 127.40 | 128.20 | 126.60 | 127.6 | 127.7 | 127.8 | 127.7 | 128 | |||||||||
25 | Q | 178.20 | 179.00 | 177.40 | 177.4 | 178.24 | 178.1 | 177.9 | 178.2 | |||||||||
26 | R | 235.70 | 236.50 | 234.90 | 236.5 | 235.4 | 235.7 | 234.9 | 235.8 | |||||||||
27 | ||||||||||||||||||
28 | ||||||||||||||||||
29 | ||||||||||||||||||
30 | ||||||||||||||||||
31 | ||||||||||||||||||
32 | ||||||||||||||||||
33 | ||||||||||||||||||
34 | ||||||||||||||||||
35 | ||||||||||||||||||
36 | ||||||||||||||||||
37 | ||||||||||||||||||
38 | ||||||||||||||||||
39 | ||||||||||||||||||
40 | ||||||||||||||||||
41 | ||||||||||||||||||
42 | ||||||||||||||||||
43 | ||||||||||||||||||
44 | ||||||||||||||||||
45 | ||||||||||||||||||
46 | ||||||||||||||||||
47 | ||||||||||||||||||
48 | ||||||||||||||||||
49 | ||||||||||||||||||
50 | Attach Drawing with Numbered Dimensions. Blanket statements of conformance are unacceptable for any test results. | |||||||||||||||||
51 | PPR SIGNATURE | TITLE | DATE | |||||||||||||||
52 | 6/10/2022 | |||||||||||||||||
C073061-D-F - 1 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
C3:C7,J3:J6,K7,F52,J52,M52,P7 | Cell | contains a blank value | text | NO |
F9:O49 | Cell Value | between $D9 and $C9 | text | YES |
F9:O49 | Cell Value | between 0.0001 and $D9 | text | YES |
F9:O49 | Cell Value | >$C9 | text | YES |