VBA LTRIM işlevi, dizenin solundaki boşluk kaldırıldıktan sonra bir dize döndürür.
LTrim(metin)
Çizginin yalnızca sol tarafındaki boşlukları kesin:
Sub LTrimExample()
MsgBox LTrim(" test") 'Döndürür: "test"
MsgBox LTrim("test ") 'Döndürür: "test "
MsgBox LTrim(" test ") 'Döndürür: "test "
MsgBox LTrim(" test test ") 'Döndürür: "test test "
End Sub