Hello Lao
Please Put Your Required Data in A range suppose in A2.
A
1 Client
2 ICNEZT3001S4IN20060519-WO-022-BSHNAG001
Now to go to Vba Editor and paste this formula in Module.As it is
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Option Explicit
Sub Count_and_Read_Range()
Dim Counter As Integer
Dim curCell As Variant
For Counter = 2 To 20
Set curCell = Worksheets("Sheet1").Cells(Counter, 1)
MsgBox curCell.FormulaLocal
If curCell = "" Then Counter = 20
Next Counter
End Sub
Sub Select_Range_and_apply_formula()
'''we are putting formula =right(a2,10)
'''''syntax-->ActiveCell.FormulaR1C1 = "YOUR FORMULA"
Sheets("sheet1").Range("C2").Select
ActiveCell.FormulaR1C1 = "=RIGHT(RC[-2],10)"
End Sub
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''