
Public Sub albatros54() Dim MyArray MyArray = Split(Cells(1, 1).Value, "/") ' si presuppone che il dato sia nella cella A1 recupero = UBound(MyArray) nome = MyArray(recupero) End Sub |
=STRINGA.ESTRAI(SOSTITUISCI(V2;"/";"@@@";LUNGHEZZA(V2)-LUNGHEZZA(SOSTITUISCI(V2;"/";"")));RICERCA("@@@";SOSTITUISCI(V2;"/";"@@@";LUNGHEZZA(V2)-LUNGHEZZA(SOSTITUISCI(V2;"/";"")));1)+3;100) |
Function Ultima_frase(str1,str2) as string Dim strArray, Tot as long, X as long, Ultima_frase as string strArray = Split(str1, str2) Tot= UBound(strArray) '......a questo punto sapevo che facendo un ciclo For to Tot, l'ultimo ciclo avrebbe ottenuto il nome del file? For X = 1 to Tot Ultima_frase = Split(???che cosa???) next X End if |
