Your Products have been synced, click here to refresh
Sub Macro1() ' ' Macro1 Macro ' Dim aver1, stddev1, angle1, cp, cpk1, cpk2, three_sigma, dist, dist1, dist2 ' For i = 1 To 18 angle1 = (i - 1) * 10 If (i - 1) * 10 = 90 Then angle1 = 90.000001 End If Range("L2").Select ActiveCell.Value = angle1 Range("X3").Select aver1 = ActiveCell.Value Range("X4").Select stddev1 = ActiveCell.Value Range("T20").Select dist = ActiveCell.Value Range("Z4").Select three_sigma = ActiveCell.Value Range("V14").Select dist1 = ActiveCell.Value Range("V16").Select dist2 = ActiveCell.Value cp = dist / three_sigma cpk1 = dist1 / three_sigma cpk2 = dist2 / three_sigma Range("AB" & (i + 6)).Select ActiveCell.Value = angle1 Range("AC" & (i + 6)).Select ActiveCell.Value = aver1 Range("AD" & (i + 6)).Select ActiveCell.Value = stddev1 Range("AE" & (i + 6)).Select ActiveCell.Value = cp Range("AF" & (i + 6)).Select ActiveCell.Value = cpk1 Range("AG" & (i + 6)).Select ActiveCell.Value = cpk2 Next i End Sub
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |