Sub InspectionCompletion()
Dim OpenDisc As Double
Dim PagesBOW As Double
Dim InspCom As Double
Dim TotalDisc As Double
OpenDisc = CDbl(InputBox("Enter how many open items are on the BOW:"))
PagesBOW = CDbl(InputBox("Enter number of BOW pages:"))
TotalDisc = (PagesBOW) * 8
InspCom = (TotalDisc - OpenDisc) / TotalDisc
MsgBox "Percentage of Inspection Completion is: " & Format(InspCom, "percent")
End Sub
|