I use this a macro to find a value(with a part or with complete value) in column of excel....

Now i have migatre part of mine code in VB classic 6.0

assuming the record where is stored the value of find is inested column K now in VB is in field PROVA11 how to convert the excel macro...

VB Code:
  1. Private Sub CommandButton5_Click()
  2.  
  3.     Dim CL As Object
  4.  
  5.     Dim T As String
  6.     Dim INTRESULT As Integer
  7.  
  8.     If TextBox9.Value = "" Then
  9.         msgbox "INSERIRE UN VALORE PER LA RICERCA NEL CAMPO NOMINATIVO!", vbCritical
  10.         Exit Sub
  11.     End If
  12.  
  13.     Set NOMIMATIVO = ActiveSheet.Range(Cells(3, 11), Cells(3, 11).End(xlDown))
  14.  
  15.     For Each CL In NOMIMATIVO
  16.         G = Me.TextBox9.Text
  17.         If CL.Value Like "*" & G & "*" Then
  18.             INTRESULT = 1
  19.             DOMANDA = msgbox("HO TROVATO  " & CL.Value & ", VUOI FERMARTI ?", vbYesNo)
  20.             If DOMANDA = vbYes Then
  21.                 INTRESULT = 2
  22.                 Me.TextBox9.Value = ""
  23.                 T = CL.Row
  24.                 Me.ScrollBar1.Value = T
  25.                 Me.TextBox1.Value = Sheets("RATE").Cells(T, "A").Value
  26.                 Me.TextBox2.Value = Sheets("RATE").Cells(T, "K").Value
  27.                 Me.TextBox3.Value = Sheets("RATE").Cells(T, "J").Value
  28.                 Me.ComboBox1.Value = Sheets("RATE").Cells(T, "M").Value
  29.                 Me.TextBox5.Value = Sheets("RATE").Cells(T, "AD").Value
  30.                 Me.TextBox7.Value = Sheets("RATE").Cells(T, "D").Value
  31.                 Me.TextBox8.Value = Sheets("RATE").Cells(T, "E").Value
  32.                 Me.TextBox10.Value = Sheets("RATE").Cells(T, "I").Value
  33.                 Me.TextBox11.Value = Sheets("RATE").Cells(T, "L").Value
  34.                 Me.TextBox12.Value = Sheets("RATE").Cells(T, "AB").Value
  35.  
  36.                 If Sheets("RATE").Cells(T, "AI").Value <> "" Then
  37.                     USER = Sheets("RATE").Cells(T, "AI").Value
  38.                     Me.TextBox13.Value = Application.WorksheetFunction.VLookup(USER, Worksheets("TABELLA").Range(Worksheets("TABELLA").Range("O1:O3"), Worksheets("TABELLA").Range("P3").End(xlUp)), 2, False)
  39.                 Else
  40.                     Me.TextBox13.Value = Sheets("RATE").Cells(T, "AI").Value
  41.                 End If
  42.  
  43.                 Me.TextBox14.Value = Sheets("RATE").Cells(T, "G").Value
  44.                 Me.TextBox15.Value = Sheets("RATE").Cells(T, "B").Value
  45.                 Me.TextBox16.Value = Sheets("RATE").Cells(T, "H").Value
  46.                 Me.TextBox17.Value = Sheets("RATE").Cells(T, "S").Value
  47.                 Me.TextBox18.Value = Sheets("RATE").Cells(T, "T").Value
  48.                 Me.TextBox19.Value = Sheets("RATE").Cells(T, "U").Value
  49.                 Me.TextBox20.Value = Sheets("RATE").Cells(T, "V").Value
  50.                 Me.TextBox21.Value = Sheets("RATE").Cells(T, "W").Value
  51.                 Me.TextBox22.Value = Sheets("RATE").Cells(T, "X").Value
  52.                 Me.TextBox23.Value = Sheets("RATE").Cells(T, "Y").Value
  53.                 Me.TextBox24.Value = Sheets("RATE").Cells(T, "Z").Value
  54.                 Me.TextBox6.Value = Format((Sheets("RATE").Cells(T, "F").Value), "##,##0.00")
  55.                 Me.TextBox27.Value = Sheets("REPORT").Range("D71").Value
  56.  
  57.                 If Sheets("RATE").Cells(RIGA, "AH").Value = "1" Then
  58.                     Me.TextBox26.Value = Sheets("RATE").Cells(RIGA, "AJ").Value
  59.                 Else
  60.                     Me.TextBox26.Value = ""
  61.                 End If
  62.  
  63.                 Exit For
  64.             End If
  65.         End If
  66.     Next
  67.  
  68.     Label42.Caption = Sheets("TABELLA").Range("L1").Value
  69.     Label41.Caption = Sheets("TABELLA").Range("L2").Value
  70.     Label50.Caption = Sheets("TABELLA").Range("L3").Value
  71.     Select Case INTRESULT
  72.     Case 0    ' not found
  73.         Me.TextBox9.Value = ""
  74.         msgbox "NESSUN NOMINATIVO TROVATO CON IL VALORE: " & G & "", vbInformation
  75.     Case 1    ' all found
  76.         Me.TextBox9.Value = ""
  77.         msgbox "TUTTI I NOMINATIVI CON " & G & " SONO STATI VISUALIZZATI.", vbInformation
  78.     Case 2    ' stopped
  79.         ' do nothing?
  80.     End Select
  81.  
  82. End Sub