Guest User

Untitled

a guest
Mar 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Sub ChangeSizes()
  2.  
  3. For i = 2 To 50
  4. Range("G" & i) = LookupSize(Range("G" & i).value)
  5. Next i
  6.  
  7. End Sub
  8.  
  9. Public Function LookupSize(Size) As String
  10.  
  11. Select Case Size
  12. Case Is = 1
  13. Return '5/8" or 1/4"'
  14. Case Is = 43
  15. Return '3/8"'
  16. End Select
  17.  
  18. End Function
Add Comment
Please, Sign In to add comment