0
我爲我們的團隊創建任務列表,並輸入創建輸入框的新任務。 在「部門問題」中只應輸入5個部門 爲防止人們輸入錯誤的部門名稱,我希望使用該輸入框的下拉列表。在輸入框中創建下拉列表
我搜索了網絡,但無法找到如何在輸入框中創建一個下拉列表。我不知道這是否可能?
任何人都可以幫助我嗎?
我寫爲輸入的碼是如下:
Private Sub Newaction_Click()
Dim content As String, date1 As Date, date2 As Date, department As String
Sheets("DO NOT DELETE").Rows("30:30").Copy
Rows("14:14").Select
Range("C14").Activate
Selection.Insert Shift:=xlDown
content = InputBox("describe the task")
Range("C14").Value = content
department = InputBox("to which department is the task assigned? ") '<-- here i want to create drop down list
Range("D14").Value = department
date1 = InputBox("when does the task start")
Range("F14").Value = date1
date2 = InputBox("when should the task be finished? ")
Range("G14").Value = date2
End Sub