Left
利用Left可以取得字串的左邊:
Label1.Caption = "德本立的VBEx" Label1.Caption = Left(Label1.Caption, 7) '結果:德本立的VBE
Label1.Caption = "VBEx的站長德本立" Label1.Cpation = Left(Label1.Caption, 3) '結果:VBE