Io ho già creato questa parte di codice, la funzione che riceve i due dati e restituisce la nuova stringa
codice:
Function createCode(ByVal code As String, ByVal name As String) As String
On Error GoTo Err_createCode
Dim str As String, codice()
str = Left(code, 3)
str = str & "0"
codice = Array(Len(name))
If check(createCode) = false then
'riprova
End If
Exit_createCode:
Exit Function
Err_createCode:
MsgBox Err.Number & " " & Err.Description
Exit Function
End Function
Come posso fare un loop sull' array e sapere cosa ho già creato???