Manual Handling & Insertion Code
Manual Handling & Insertion Code
'Fills table with numbered, bordered cells and populates angle, size,
'and thickness cells with formulas.
Private Sub cmdFillTable_Click()
Count = 1
RangeString = ""
NumParts = Range("NumOfParts").Value
Range("A4:R1000").Clear
Range("A4:R1000").Borders.LineStyle = xlNone
Do
RangeString = "A" & Count + 3
Range(RangeString).Value = Count
Count = Count + 1
Loop Until Count > NumParts
Range(RangeString).Borders.LineStyle = xlContinuous
Range(RangeString).Font.Size = 14
End Sub
Count = 1
NumOfParts = Range("NumOfParts").Value
Do
TotalAngle = Range("G" & Count + 3).Value
Sizemm = Range("H" & Count + 3).Value
Thickmm = Range("I" & Count + 3).Value
If Count = 1 Then
InsertCode = "00"
Else
InsertCode = ICodeCalc()
End If
Count = Count + 1
Loop Until Count > NumOfParts
End Sub
HCodeCalc = HCodeFull
End Function
ICodeCalc = ICodeFull
End Function
Count = 1
NumOfParts = Range("NumOfParts").Value
HandlingCodes = ThisWorkbook.Worksheets("Handling and
Insertion").Range("B3:K6").Value
Do
TotalAngle = Range("G" & Count + 3).Value
Sizemm = Range("H" & Count + 3).Value
Thickmm = Range("I" & Count + 3).Value
Count = Count + 1
Loop Until Count > NumOfParts
End Sub
Count = 1
NumOfParts = Range("NumOfParts").Value
InsertionCodesLoose = ThisWorkbook.Worksheets("Handling and
Insertion").Range("B10:I12").Value
InsertionCodesSecure = ThisWorkbook.Worksheets("Handling and
Insertion").Range("B15:K17").Value
InsertionCodesSeparate = ThisWorkbook.Worksheets("Handling and
Insertion").Range("B20:K20").Value
Do
If Count = 1 Then
InsertCode = "00"
Else
InsertCode = ICodeCalc()
End If
End Sub
RowNum = InputBox("Please enter the row you would like recalculated:", "What
Row?")
If RowNum = 1 Then
InsertCode = "00"
Else
InsertCode = ICodeCalc()
End If