Tag: 检查

检查Excel在使用VBA将未修改的Excel工作簿复制到SharePoint时崩溃

我正在做一个vba项目,看起来像这样: if workbooks.canCheckOut(filename) = true then workbooks.CheckOut(filename) set workbookVariable = workboooks.Open(filename) else ' Pesudocode: Display error message ' Quit end if ' Pseudocode: Do some stuff with workbookVariable. If workbookVariable.saved = false then workbookVariable.save end if If workbookVariable.canCheckIn then workbookVariable.checkIn Set workbookVariable = Nothing else msgbox "Error message goes here", vbCritical end if ' Pseudocode: […]