litestream
Active Member
- Joined
- Jul 24, 2006
- Messages
- 323
In cell F2, I use a procedure called RemoveNumeric(D2) which removes the numerals from an alphanumeric stock code contained in cell D2 leaving me with the portion of the code that relates to a specific client.
How can I apply this to each row of my worksheet in column F, bearing in mind that I continually add and remove stock lines from my sheet, short of pasting it into each cell regardless of whether the line is populated with data or not?
The top row of the worksheet contains column headings.
Function RemoveNumeric(Rng As String) As String
Dim Tmp As String
Dim i As Integer
Tmp = Rng
For i = 0 To 9
Tmp = Application.Substitute(Tmp, i, "")
Next i
RemoveNumeric = Tmp
End Function
How can I apply this to each row of my worksheet in column F, bearing in mind that I continually add and remove stock lines from my sheet, short of pasting it into each cell regardless of whether the line is populated with data or not?
The top row of the worksheet contains column headings.