I want to extract, from the ID column, the Telephone using:
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: inherit;">Sub Left_Funcion()
Dim LResult As String
LResult = "=Left(B2,11)"
With Sheets("Worksheet")
.Range("E2:E" & .Cells(.Rows.Count, "A").End(xlUp).Row).Formula = LResult
End With
End Sub</code>
I can do it with one file, but what to do when I want to do this to multiple files in folder like C:\Users\kowal\Documents\TestResults
what code i must add to makro?
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: inherit;">Sub Left_Funcion()
Dim LResult As String
LResult = "=Left(B2,11)"
With Sheets("Worksheet")
.Range("E2:E" & .Cells(.Rows.Count, "A").End(xlUp).Row).Formula = LResult
End With
End Sub</code>
I can do it with one file, but what to do when I want to do this to multiple files in folder like C:\Users\kowal\Documents\TestResults
what code i must add to makro?