1
我想通過「Shift + Click」(Shift鍵+鼠標點擊鼠標左鍵)在文本字段上設置Open FileDialog,它怎麼可能?如何在VBA Access上設置「Shift + Click」?
我寫這爲打開文件對話框:
Private Sub Article_Click()
Dim dialog As FileDialog
Set dialog = Application.FileDialog(msoFileDialogFilePicker)
With dialog
.AllowMultiSelect = False
.Show
Me.Article() = .SelectedItems(1)
End With
End Sub
這是否幫助? http://office.microsoft.com/en-us/access-help/run-an-access-macro-by-using-a-keyboard-shortcut-HA010239111.aspx –