Run-time Error '1004' - Method 'Open' of object 'Workbooks' failed

后端 未结 8 811
故里飘歌
故里飘歌 2021-01-21 00:09

OK, so far I\'ve uninstalled & re installed Office-2010 3 to 4 times, done hours of research for 3 days with no success. I started getting this error either from Vbscript or

8条回答
  •  醉酒成梦
    2021-01-21 00:43

    I realise this is late but if you want to open & repair a corrupted workbook automatically use:

    Set oWB = Workbooks.Open(Filename:="C:\my\file\path.xlsx", CorruptLoad:=XlCorruptLoad.xlRepairFile)
    

提交回复
热议问题