文書番号: 401685
最終更新日: 1998/02/10
Sub DlgSamp()
DialogSheets("Dialog1").Show
Worksheets("Sheet1").Range("$D$1").Value = _
DialogSheets("Dialog1").ListBoxes("リスト 4").List( _
DialogSheets("Dialog1").ListBoxes("リスト 4").ListIndex)
End Sub
Sub DropSamp()
Worksheets("sheet1").Range("$D$1").Value = _
Worksheets("sheet1").DropDowns("ドロップ 1").List( _
Worksheets("sheet1").DropDowns("ドロップ 1").ListIndex)
End Sub
Sub MultiListSamp()
Dim selectitem As Variant
DialogSheets("dialog1").Show
selectitem = DialogSheets("Dialog1"). _
ListBoxes("リスト 1").Selected
For i = 1 To DialogSheets("Dialog1"). _
ListBoxes("リスト 1").ListCount
If selectitem(i) = True Then
MsgBox DialogSheets("Dialog2"). _
ListBoxes("リスト 1").List(i)
End If
Next I
End Sub
Sub MultiDropSamp()
Dim selectitem As Variant
selectitem = WorkSheets("Sheet1").DropDowns("ドロップ 1").Selected
For i = 1 To WorkSheets("Sheet1"). _
DropDowns("ドロップ 1").ListCount
If selectitem(i) = True Then
MsgBox WorkSheets("Sheet1"). _
DropDowns("ドロップ 1").List(i)
End If
Next I
End Sub
Keywords: KBHOWTO KB401685
Technology: kbExcel500 kbExcelSearch kbExcelWinSearch