funzioni stringa
vedi
matema3.xls

sintassi per funzioni tipo stringa e uso di VBA

Private Sub CommandButton1_Click()
'matema3 funzioni stringa
'right$(testo,n).......n caratteri da destra
'left$(testo,n)........n caratteri da sinistra
'len(testo)............lunghezza testo
'mid$(testo,p,n).......n caratteri da p
'testo1 & testo2.......unione testi
'testo1+testo2.........unione testi
'"testo1"+"testo2".....unione testi
'"testo1"&"testo2".....unione testi



Dim a, b, c As String
Dim x As Integer
b = "maria"
c = "rosa"
a = "laudare"
Cells(1, 1) = Len(a)
x = Len(a)
Cells(2, 1) = Right$(a, x - 3)
Cells(3, 1) = Left$(a, x - 1)
Cells(4, 1) = Mid$(a, 2, 2)
Cells(5, 1) = "maria" + "rosa"
Cells(6, 1) = b + c
Cells(7, 1) = b & c
End Sub