select data 3nbase famord

as show here

c11111.PNG

here the file
29088846a__3nbase_fam_ord_to.xlsb
ADRIANA PACCOUNTING ASSISTANTAsked:
Who is Participating?
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Please give this a try...

Sub FAM_ORD()
Dim lr As Long, i As Long, j As Long
Dim x, y()

Application.ScreenUpdating = False

lr = Cells(Rows.Count, "CE").End(xlUp).Row
x = Range("CE7:CE" & lr).Value
ReDim y(1 To UBound(x, 1), 1 To 1)

For i = 1 To UBound(x, 1)
    If x(i, 1) <> "" Then
        If IsNumeric(x(i, 1)) Then
            y(i, 1) = OrderNumber(CStr(x(i, 1)))
        End If
    End If
Next i
Range("CG7:CG" & lr).NumberFormat = "@"
Range("CG7").Resize(lr, 1).Value = y
Application.ScreenUpdating = True
End Sub

Open in new window

29088846a__3nbase_fam_ord_to.xlsb
1
 
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
Great Job !

Best expert !
1
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.