Tim Hanson
Member
I can not get this working as a macro, the formula itself works
I am tiring to remove everything including the . to the right of the . e.g aaaaa.ntu.thuh I get aaaaa but I need aaaaa.ntu
Thanks
I am tiring to remove everything including the . to the right of the . e.g aaaaa.ntu.thuh I get aaaaa but I need aaaaa.ntu
Thanks
Code:
Sub DoesThisWork()
Dim c
Dim Lastrow As Long
With Sheets("sheet1")
Lastrow = .range("C" & .Rows.Count).End(xlUp).Row
End With
For Each c In range("E2:E" & Lastrow)
c.Value = "=Left(A2, Find(""."", A2) - 1)"
Next
range("E1").Select
ActiveCell.FormulaR1C1 = "Source"
End Sub
Last edited: