Hi all
I want to create a macro which extracts first 2 or 3 values from a cell
and prints those extracted values in to any cells
here is the macro i have written
but i cant print extracted values to adjacent cells
Sub ExcelMain()
Excel.Application.ScreenUpdating = False
Dim i As Integer
Dim a As Long
For i = 1 To 5
a = Range("E5").Offset(i, 0).Value
a = Left(a, 2)
Next
End Sub
thank you
I want to create a macro which extracts first 2 or 3 values from a cell
and prints those extracted values in to any cells
here is the macro i have written
but i cant print extracted values to adjacent cells
Sub ExcelMain()
Excel.Application.ScreenUpdating = False
Dim i As Integer
Dim a As Long
For i = 1 To 5
a = Range("E5").Offset(i, 0).Value
a = Left(a, 2)
Next
End Sub
thank you