Forum Discussion
Dellehurley
Nov 20, 2020Copper Contributor
Run-time error '-2147024894 (80070002)' Single Macros won't work on my laptop but works for others.
Hi I have Excel 365 W10 HP laptop. I have an excel file with lots of Macros in it. One single macros will not work, the error is Run-time error '-2147024894 (80070002)' Automation error. The system ...
JKPieterse
Nov 20, 2020Silver Contributor
What does Dir(FolderName & FileName) return?
- DellehurleyNov 23, 2020Copper Contributor
JKPieterse Hi Jan, I am not 100% certain what you mean.
If I watch FolderName & FileName I get the correct path to the document.
eg. Watch : : FolderName & Filename : "C:\Users\delle\Dropbox\Genealogy\Family Tree\FMa4216.pdf" : String : FrmForm.lstDatabase_DblClick
If you meant for me to edit to macros to Dir(FolderName & FileName) it comes back as only the file name.
eg. Watch : : Dir(FolderName & Filename) : "FMa4216.pdf" : String : FrmForm.lstDatabase_DblClick
If I have misunderstood please let me know.
D
- JKPieterseNov 23, 2020Silver ContributorOn which line of the code does the error occur precisely? (which line is yellow when you click Debug)?
- DellehurleyNov 24, 2020Copper Contributor
JKPieterse the error is with this line
myShell.Run FolderName & FileName