Collabora Office 24.04 Help
사용자가 텍스트를 입력할 수 있는 대화 상자가 표시됩니다. 입력 내용은 변수에 할당됩니다.
InputBox 문은 대화 상자를 통해 텍스트를 입력하는 편리한 방법입니다. 확인 또는 Return 키를 눌러 입력 내용을 확인하면 함수 반환 값으로 입력 내용이 구해집니다. 취소를 눌러 대화 상자를 닫으면 InputBox는 빈 문자열("")을 표시합니다.
InputBox (Prompt As String[, Title As String[, Default As String[, xpostwips As Integer, ypostwips As Integer]]]) As String
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 Collabora Office.
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 Collabora Office.
If xpostwips and ypostwips are omitted, the dialog is centered on the screen. The position is specified in twips.
String
Sub ExampleInputBox
Dim sText As String
sText = InputBox ("구절을 입력하십시오:","사용자 귀하")
MsgBox ( sText , 64, "구절 확인")
End Sub