Enable JavaScript in the browser to display LibreOfficeDev Help pages.

End Statement

བརྒྱུད་རིམ་མམ་རྗོད་པའི་མིང་མཇུག་སྒྲིལ།

བརྡ་འཕྲོད་


End, End Enum, End Function, End If, End Property, End Select, End Sub, End With

ཁུགས་གྲངས་

གཤམ་གསལ་ལས་མཚོན་པ་ལྟར་ End རྗོད་པ་བེད་སྤྱོད་

རྗོད་པ་

End དགོས་ངེས་ཀྱི་རྗོད་པ་མིན་ འོན་ཏེ་བརྒྱུད་རིམ་གྱི་གནས་ས་གང་རུང་དུ་རྗོད་པ་དེ་ནང་འཇུག་གིས་བྱ་རིམ་གྱི་ལག་བསྟར་མཇུག་སྒྲིལ་བྱེད།

End Enum: Ends an Enum VBA statement

End Function མཇུག་བསྡུ་ Function རྗོད་པ།

End If བྲིས་རྟགས་ If...Then...Else རྗོད་པའི་མིང་གི་མཇུག་སྒྲིལ།

End Property: Marks the end of a Property statement.

End Select བྲིས་རྟགས་ Select Case རྗོད་པའི་ལིང་གི་མཇུག་སྒྲིལ།

End Sub མཇུག་སྒྲིལ་ Sub རྗོད་པ།

End With: Ends a With statement

དཔེ་གཞི་


Sub ExampleRandomSelect
Dim iVar As Integer
    iVar = Int((15 * Rnd) -2)
    Select Case iVar
        Case 1 To 5
            Print "Number from 1 to 5"
        Case 6, 7, 8
            Print "Number from 6 to 8"
        Case Is > 8 And iVar < 11
            Print "Greater than 8"
        Case Else
            Print "Outside range 1 to 10"
    End Select
End Sub