G
Guest
currently am using code:
Dim intMaterial As Integer
Dim strMaterial As String
strMaterial = ActiveCell.Offset([0], [-15])
intMaterial = ConvertMaterial(strMaterial)
the above works, but was going to try to reduce by two lines to:
Dim intMaterial As Integer
intMaterial = ConvertMaterial(ActiveCell.Offset([0], [-15]))
ConvertMaterial is my own function that takes in a string and returns an int.
Any ideas how to do this
Dim intMaterial As Integer
Dim strMaterial As String
strMaterial = ActiveCell.Offset([0], [-15])
intMaterial = ConvertMaterial(strMaterial)
the above works, but was going to try to reduce by two lines to:
Dim intMaterial As Integer
intMaterial = ConvertMaterial(ActiveCell.Offset([0], [-15]))
ConvertMaterial is my own function that takes in a string and returns an int.
Any ideas how to do this