Public Sub openExcel ()
'set properties dialog box that is used to specify the EXCEL file
CommonDialog1. Filter="Excel file *. XLS"
CommonDialog1. Action=1
If CommonDialog1. FileName<> "" Then
Expath=CommonDialog1. FileName
'open the dialog box to specify the EXCEL workbook
Workbooks. Open FileName:=expath, this error, prompt error loading DLL
Oldbook. Close
The Else
End the If
End Sub
CodePudding user response:
Your computer is installed officeVb EXCEL operation need to have the office of the relevant material
CodePudding user response: