kanchan choudhary
New Member
- Joined
- Feb 18, 2018
- Messages
- 3
Hi All,
i am getting a error sub or function not defined in vba, can any one help.
i am getting a error sub or function not defined in vba, can any one help.
Code:
Sub xyz()
counter = 1
Sheets("Sheet3").Select
For k = 6 To 200000
DOBval = Cells(k, 1)
If Mid(DOBval, Find("", DOBval + 1, 6)) = "App.No" Then
DOB = Cells(k + 1, 1)
counter = counter + 1
Worksheets("Output").Cells(counter, 6) = DOB
DOB = ""
End If
Next k
End Sub
Last edited by a moderator: