InputBox Function

αž”αž„αŸ’αž αžΆαž‰β€‹αž”αŸ’αžšαž’αž”αŸ‹β€‹αž”αž‰αŸ’αž…αžΌαž›β€‹αž€αŸ’αž“αž»αž„β€‹αž”αŸ’αžšαž’αž”αŸ‹β€‹αž˜αž½αž™ αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž”αŸ’αžšαžΎβ€‹αž’αžΆαž…β€‹αž”αž‰αŸ’αž…αžΌαž›β€‹αž’αžαŸ’αžαž”αž‘Β αŸ” αž–αŸαžαŸŒαž˜αžΆαž“β€‹αž”αž‰αŸ’αž…αžΌαž›β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αž•αŸ’αžαž›αŸ‹β€‹αž‘αŸ…β€‹αž’αžαŸαžšβ€‹αž˜αž½αž™Β αŸ”

InputBox statement αž‚αžΊβ€‹αž‡αžΆβ€‹αžœαž·αž’αžΈαžŸαžΆαžŸαŸ’αžαŸ’αžšβ€‹αžŠαŸβ€‹αž„αžΆαž™β€‹αžŸαŸ’αžšαž½αž›β€‹αž€αŸ’αž“αž»αž„β€‹αž€αžΆαžšβ€‹αž”αž‰αŸ’αž…αžΌαž›β€‹αž’αžαŸ’αžαž”αž‘β€‹αžαžΆαž˜β€‹αžšαž™αŸˆβ€‹αž”αŸ’αžšαž’αž”αŸ‹β€‹αž˜αž½αž™Β αŸ” αž’αŸ‡αž’αžΆαž„β€‹αž–αŸαžαŸŒαž˜αžΆαž“β€‹αž”αž‰αŸ’αž…αžΌαž›β€‹αžŠαŸ„αž™β€‹αž…αž»αž…β€‹ αž™αž›αŸ‹αž–αŸ’αžšαž˜ αž¬β€‹β€‹αž…αž»αž… αžαŸ’αžšαž‘αž”αŸ‹Β αŸ” αž–αŸαžαŸŒαž˜αžΆαž“β€‹αž”αž‰αŸ’αž…αžΌαž›β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αžαŸ’αžšαž‘αž”αŸ‹β€‹αž‡αžΆβ€‹αžαž˜αŸ’αž›αŸƒβ€‹αžαŸ’αžšαž‘αž”αŸ‹β€‹αž’αž“αž»αž‚αž˜αž“αŸΒ αŸ” αž”αŸ’αžšαžŸαž·αž“β€‹αž”αžΎβ€‹αž’αŸ’αž“αž€β€‹αž”αž·αž‘β€‹αž”αŸ’αžšαž’αž”αŸ‹β€‹αž‡αžΆαž˜αž½αž™β€‹ αž”αŸ„αŸ‡αž”αž„αŸ‹β€‹ InputBox αžαŸ’αžšαž‘αž”αŸ‹β€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αž”αŸ’αžšαžœαŸ‚αž„β€‹αžŸαžΌαž“αŸ’αž™ ("")Β αŸ”

Syntax:


InputBox (Prompt As String[, Title As String[, Default As String[, xpostwips As Integer, ypostwips As Integer]]]) As String

Parameters:

prompt: String expression displayed as the message in the dialog box.

title: String expression displayed in the title bar of the dialog box.

default: String expression displayed in the text box as default if no other input is given.

xpostwips: Integer expression that specifies the horizontal position of the dialog. The position is an absolute coordinate and does not refer to the window of LibreOffice.

ypostwips: Integer expression that specifies the vertical position of the dialog. The position is an absolute coordinate and does not refer to the window of LibreOffice.

If xpostwips and ypostwips are omitted, the dialog is centered on the screen. The position is specified in twips.

Return value:

αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš

Example:


Sub ExampleInputBox
Dim sText As String
    sText  = InputBox ("Please enter a phrase:","Dear User")
    MsgBox ( sText , 64, "Confirmation of phrase")
End Sub

Please support us!