InputBox Function

āĻāĻ•āϟāĻŋ āĻĄāĻžā§ŸāĻžāϞāϗ⧇ āĻāĻ•āϟāĻŋ āĻĒā§āϰāĻŽāĻĒā§āϟ āĻĒā§āϰāĻĻāĻ°ā§āĻļāύ āĻ•āϰ⧇ āĻĨāĻžāϕ⧇ āϝ⧇āĻ–āĻžāύ⧇ āĻŦā§āϝāĻŦāĻšāĻžāϰāĻ•āĻžāϰ⧀ āϞ⧇āĻ–āĻžāϰ āχāύāĻĒ⧁āϟ āĻĻāĻŋāϤ⧇ āĻĒāĻžāϰ⧇āĨ¤ āχāύāĻĒ⧁āϟāϟāĻŋ āĻāĻ•āϟāĻŋ āϭ⧇āϰāĻŋ⧟āĻŦāϞ⧇ āĻŦāϰāĻžāĻĻā§āĻĻ āĻ•āϰāĻž āĻšā§ŸāĨ¤

InputBox āĻšāϞ⧋ āĻāĻ•āϟāĻŋ āĻĄāĻžā§ŸāĻžāϞāϗ⧇āϰ āĻŽāĻžāĻ§ā§āϝāĻŽā§‡ āϞ⧇āĻ–āĻž āϏāĻ¨ā§āύāĻŋāĻŦ⧇āĻļ āĻ•āϰāĻžāύ⧋āϰ āϏ⧁āĻŦāĻŋāϧāĻžāϜāύāĻ• āĻĒāĻĻā§āϧāϤāĻŋāĨ¤ OK āĻ•ā§āϞāĻŋāĻ• āĻ•āϰ⧇ āĻ…āĻĨāĻŦāĻž "āĻĢāĻŋāϰ⧇ āϝāĻžāύ" āĻšā§‡āĻĒ⧇ āχāύāĻĒ⧁āϟ āύāĻŋāĻļā§āϚāĻŋāϤ āĻ•āϰāĻž āĻšā§ŸāĨ¤ āĻĢāĻžāĻ‚āĻļāύ⧇āϰ āĻŽāĻžāύ āĻĒā§āϰāĻĻāĻžāύ āĻšāϞ⧇ āχāύāĻĒ⧁āϟ āĻĒā§āϰāĻĻāĻžāύ āĻšā§ŸāĨ¤ āφāĻĒāύāĻŋ āϝāĻĻāĻŋ "āĻŦāĻžāϤāĻŋāϞ" āĻšā§‡āĻĒ⧇ āĻĄāĻžā§ŸāĻžāϞāĻ—āϟāĻŋ āĻŦāĻ¨ā§āϧ āĻ•āϰ⧇āύ, āϤāĻžāĻšāϞ⧇ 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!