Ajuda do LibreOffice 26.2
Atribui um valor a uma variável.
[Let] variable = expression
variável: Variável à qual pretende atribuir um valor. O valor e o tipo da variável têm de ser compatíveis.
Tal como na maioria dos dialetos do BASIC, a palavra-chave Let é opcional.
Sub ExampleLet
Dim sText As String
Let sText = "Las Vegas"
MsgBox Len(sText) ' devolve 9
End Sub