Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim grosswt As Double
- 'lbs<130
- If check.Value <= 130 And ref.Value = "Bio" Then
- grosswt = (use.Value + 20) * (102 / 100)
- ElseIf check.Value <= 130 And ref.Value = "Presetting" Then
- grosswt = (use.Value + 20) * (101 / 100)
- ElseIf check.Value <= 130 And ref.Value = "Sueded" Then
- grosswt = (use.Value + 20) * (101 / 100)
- ElseIf check.Value <= 130 And ref.Value = "Brushing" Then
- grosswt = (use.Value + 20) * (115 / 100)
- ElseIf check.Value <= 130 And ref.Value = "Printing" Then
- grosswt = (use.Value + 20) * (101 / 100)
- 'lbs between 131 and 200
- ElseIf check.Value >= 131 And check.Value <= 200 And ref.Value = "Bio" Then
- grosswt = ((use.Value * 1.15) + 15) * (102 / 100)
- ElseIf check.Value >= 131 And check.Value <= 200 And ref.Value = "Presetting" Then
- grosswt = ((use.Value * 1.15) + 15) * (101 / 100)
- ElseIf check.Value >= 131 And check.Value <= 200 And ref.Value = "Sueded" Then
- grosswt = ((use.Value * 1.15) + 15) * (101 / 100)
- ElseIf check.Value >= 131 And check.Value <= 200 And ref.Value = "Brushing" Then
- grosswt = ((use.Value * 1.15) + 15) * (115 / 100)
- ElseIf check.Value >= 131 And check.Value <= 200 And ref.Value = "Printing" Then
- grosswt = ((use.Value * 1.15) + 15) * (101 / 100)
- 'lbs between 201 and 500
- ElseIf check.Value >= 201 And check.Value <= 500 And ref.Value = "Bio" Then
- grosswt = ((use.Value * 1.1) + 10) * (102 / 100)
- ElseIf check.Value >= 201 And check.Value <= 500 And ref.Value = "Presetting" Then
- grosswt = ((use.Value * 1.1) + 10) * (101 / 100)
- ElseIf check.Value >= 201 And check.Value <= 500 And ref.Value = "Sueded" Then
- grosswt = ((use.Value * 1.1) + 10) * (101 / 100)
- ElseIf check.Value >= 201 And check.Value <= 500 And ref.Value = "Brushing" Then
- grosswt = ((use.Value * 1.1) + 10) * (115 / 100)
- ElseIf check.Value >= 201 And check.Value <= 500 And ref.Value = "Printing" Then
- grosswt = ((use.Value * 1.1) + 10) * (101 / 100)
- '60%c40%p lbs between 501 and 999
- ElseIf check.Value >= 501 And check.Value <= 999 And ctn = "60%Cotton40%Poly" And ref.Value = "Bio" Then
- grosswt = (use.Value * 1.11) * (102 / 100)
- ElseIf check.Value >= 501 And check.Value <= 999 And ctn = "60%Cotton40%Poly" And ref.Value = "Presetting" Then
- grosswt = (use.Value * 1.11) * (101 / 100)
- ElseIf check.Value >= 501 And check.Value <= 999 And ctn = "60%Cotton40%Poly" And ref.Value = "Sueded" Then
- grosswt = (use.Value * 1.11) * (101 / 100)
- ElseIf check.Value >= 501 And check.Value <= 999 And ctn = "60%Cotton40%Poly" And ref.Value = "Brushing" Then
- grosswt = (use.Value * 1.11) * (115 / 100)
- ElseIf check.Value >= 501 And check.Value <= 999 And ctn = "60%Cotton40%Poly" And ref.Value = "Printing" Then
- grosswt = (use.Value * 1.11) * (101 / 100)
- '100%c lbs between 501 and 999
- ElseIf check.Value >= 501 And check.Value <= 999 And ctn = "100%Cotton" And ref.Value = "Bio" Then
- grosswt = (use.Value * 1.12) * (102 / 100)
- ElseIf check.Value >= 501 And check.Value <= 999 And ctn = "100%Cotton" And ref.Value = "Presetting" Then
- grosswt = (use.Value * 1.12) * (101 / 100)
- ElseIf check.Value >= 501 And check.Value <= 999 And ctn = "100%Cotton" And ref.Value = "Sueded" Then
- grosswt = (use.Value * 1.12) * (101 / 100)
- ElseIf check.Value >= 501 And check.Value <= 999 And ctn = "100%Cotton" And ref.Value = "Brushing" Then
- grosswt = (use.Value * 1.12) * (115 / 100)
- ElseIf check.Value >= 501 And check.Value <= 999 And ctn = "100%Cotton" And ref.Value = "Printing" Then
- grosswt = (use.Value * 1.12) * (101 / 100)
- '60%c40%p lbs between 1000 and 2000
- ElseIf check.Value >= 1000 And check.Value <= 2000 And ctn = "60%Cotton40%Poly" And ref.Value = "Bio" Then
- grosswt = (use.Value * 1.07) * (102 / 100)
- ElseIf check.Value >= 1000 And check.Value <= 2000 And ctn = "60%Cotton40%Poly" And ref.Value = "Presetting" Then
- grosswt = (use.Value * 1.07) * (101 / 100)
- ElseIf check.Value >= 1000 And check.Value <= 2000 And ctn = "60%Cotton40%Poly" And ref.Value = "Sueded" Then
- grosswt = (use.Value * 1.07) * (101 / 100)
- ElseIf check.Value >= 1000 And check.Value <= 2000 And ctn = "60%Cotton40%Poly" And ref.Value = "Brushing" Then
- grosswt = (use.Value * 1.07) * (115 / 100)
- ElseIf check.Value >= 1000 And check.Value <= 2000 And ctn = "60%Cotton40%Poly" And ref.Value = "Printing" Then
- grosswt = (use.Value * 1.07) * (101 / 100)
- '100% lbs between 1000 and 2000
- ElseIf check.Value >= 1000 And check.Value <= 2000 And ctn = "100%Cotton" And ref.Value = "Bio" Then
- grosswt = (use.Value * 1.08) * (102 / 100)
- ElseIf check.Value >= 1000 And check.Value <= 2000 And ctn = "100%Cotton" And ref.Value = "Presetting" Then
- grosswt = (use.Value * 1.08) * (101 / 100)
- ElseIf check.Value >= 1000 And check.Value <= 2000 And ctn = "100%Cotton" And ref.Value = "Sueded" Then
- grosswt = (use.Value * 1.08) * (101 / 100)
- ElseIf check.Value >= 1000 And check.Value <= 2000 And ctn = "100%Cotton" And ref.Value = "Brushing" Then
- grosswt = (use.Value * 1.08) * (115 / 100)
- ElseIf check.Value >= 1000 And check.Value <= 2000 And ctn = "100%Cotton" And ref.Value = "Printing" Then
- grosswt = (use.Value * 1.08) * (101 / 100)
- '60%c40%p lbs between 2001 and 4999
- ElseIf check.Value >= 2001 And check.Value <= 4999 And ctn = "60%Cotton40%Poly" And ref.Value = "Bio" Then
- grosswt = (use.Value * 1.05) * (102 / 100)
- ElseIf check.Value >= 2001 And check.Value <= 4999 And ctn = "60%Cotton40%Poly" And ref.Value = "Presetting" Then
- grosswt = (use.Value * 1.05) * (101 / 100)
- ElseIf check.Value >= 2001 And check.Value <= 4999 And ctn = "60%Cotton40%Poly" And ref.Value = "Sueded" Then
- grosswt = (use.Value * 1.05) * (101 / 100)
- ElseIf check.Value >= 2001 And check.Value <= 4999 And ctn = "60%Cotton40%Poly" And ref.Value = "Brushing" Then
- grosswt = (use.Value * 1.05) * (115 / 100)
- ElseIf check.Value >= 2001 And check.Value <= 4999 And ctn = "60%Cotton40%Poly" And ref.Value = "Printing" Then
- grosswt = (use.Value * 1.05) * (101 / 100)
- '100% lbs between 2001 and 4999
- ElseIf check.Value >= 2001 And check.Value <= 4999 And ctn = "100%Cotton" And ref.Value = "Bio" Then
- grosswt = (use.Value * 1.08) * (102 / 100)
- ElseIf check.Value >= 2001 And check.Value <= 4999 And ctn = "100%Cotton" And ref.Value = "Presetting" Then
- grosswt = (use.Value * 1.08) * (101 / 100)
- ElseIf check.Value >= 2001 And check.Value <= 4999 And ctn = "100%Cotton" And ref.Value = "Sueded" Then
- grosswt = (use.Value * 1.08) * (101 / 100)
- ElseIf check.Value >= 2001 And check.Value <= 4999 And ctn = "100%Cotton" And ref.Value = "Brushing" Then
- grosswt = (use.Value * 1.08) * (115 / 100)
- ElseIf check.Value >= 2001 And check.Value <= 4999 And ctn = "100%Cotton" And ref.Value = "Printing" Then
- grosswt = (use.Value * 1.08) * (101 / 100)
- '60%c40%p lbs between 5000 and 8000
- ElseIf check.Value >= 5000 And check.Value <= 8000 And ctn = "60%Cotton40%Poly" And ref.Value = "Bio" Then
- grosswt = (use.Value * 1.05) * (102 / 100)
- ElseIf check.Value >= 5000 And check.Value <= 8000 And ctn = "60%Cotton40%Poly" And ref.Value = "Presetting" Then
- grosswt = (use.Value * 1.05) * (101 / 100)
- ElseIf check.Value >= 5000 And check.Value <= 8000 And ctn = "60%Cotton40%Poly" And ref.Value = "Sueded" Then
- grosswt = (use.Value * 1.05) * (101 / 100)
- ElseIf check.Value >= 5000 And check.Value <= 8000 And ctn = "60%Cotton40%Poly" And ref.Value = "Brushing" Then
- grosswt = (use.Value * 1.05) * (115 / 100)
- ElseIf check.Value >= 5000 And check.Value <= 8000 And ctn = "60%Cotton40%Poly" And ref.Value = "Printing" Then
- grosswt = (use.Value * 1.05) * (101 / 100)
- '100% lbs between 5000 and 8000
- ElseIf check.Value >= 5000 And check.Value <= 8000 And ctn = "100%Cotton" And ref.Value = "Bio" Then
- grosswt = (use.Value * 1.07) * (102 / 100)
- ElseIf check.Value >= 5000 And check.Value <= 8000 And ctn = "100%Cotton" And ref.Value = "Presetting" Then
- grosswt = (use.Value * 1.07) * (101 / 100)
- ElseIf check.Value >= 5000 And check.Value <= 8000 And ctn = "100%Cotton" And ref.Value = "Sueded" Then
- grosswt = (use.Value * 1.07) * (101 / 100)
- ElseIf check.Value >= 5000 And check.Value <= 8000 And ctn = "100%Cotton" And ref.Value = "Brushing" Then
- grosswt = (use.Value * 1.07) * (115 / 100)
- ElseIf check.Value >= 5000 And check.Value <= 8000 And ctn = "100%Cotton" And ref.Value = "Printing" Then
- grosswt = (use.Value * 1.07) * (101 / 100)
- '60%c40%p lbs between 8001 and 10000
- ElseIf check.Value >= 8001 And check.Value <= 10000 And ctn = "60%Cotton40%Poly" And ref.Value = "Bio" Then
- grosswt = (use.Value * 1.05) * (102 / 100)
- ElseIf check.Value >= 8001 And check.Value <= 10000 And ctn = "60%Cotton40%Poly" And ref.Value = "Presetting" Then
- grosswt = (use.Value * 1.05) * (101 / 100)
- ElseIf check.Value >= 8001 And check.Value <= 10000 And ctn = "60%Cotton40%Poly" And ref.Value = "Sueded" Then
- grosswt = (use.Value * 1.05) * (101 / 100)
- ElseIf check.Value >= 8001 And check.Value <= 10000 And ctn = "60%Cotton40%Poly" And ref.Value = "Brushing" Then
- grosswt = (use.Value * 1.05) * (115 / 100)
- ElseIf check.Value >= 8001 And check.Value <= 10000 And ctn = "60%Cotton40%Poly" And ref.Value = "Printing" Then
- grosswt = (use.Value * 1.05) * (101 / 100)
- '100% lbs between 8001 and 10000
- ElseIf check.Value >= 8001 And check.Value <= 10000 And ctn = "100%Cotton" And ref.Value = "Bio" Then
- grosswt = (use.Value * 1.07) * (102 / 100)
- ElseIf check.Value >= 8001 And check.Value <= 10000 And ctn = "100%Cotton" And ref.Value = "Presetting" Then
- grosswt = (use.Value * 1.07) * (101 / 100)
- ElseIf check.Value >= 8001 And check.Value <= 10000 And ctn = "100%Cotton" And ref.Value = "Sueded" Then
- grosswt = (use.Value * 1.07) * (101 / 100)
- ElseIf check.Value >= 8001 And check.Value <= 10000 And ctn = "100%Cotton" And ref.Value = "Brushing" Then
- grosswt = (use.Value * 1.07) * (115 / 100)
- ElseIf check.Value >= 8001 And check.Value <= 10000 And ctn = "100%Cotton" And ref.Value = "Printing" Then
- grosswt = (use.Value * 1.07) * (101 / 100)
- End If
- myfunc = grosswt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement