File Dialog error access VBA
问题 I am trying to have the file dialog box pop up so the user can select a file path to export a file in VBA but for some reason it throws this error on the following line of code. Error: Method 'FileDialog' of object '_Application' failed Code: longResult = Application.FileDialog(msoFileDialogFolderPicker).Show All Code: If choice = 6 Then Dim intResult As Long Dim strPath As String 'the dialog is displayed to the user longResult = Application.FileDialog(msoFileDialogFolderPicker).Show 'checks