Excel VBA code wiped my files - Mac OS

Copper Contributor

Hi all,

 

I'm posting this as a warning as Microsoft & Apple support were both unable to help me resolve this issue.

 

I was trying to write & test VBA code for an Excel Macro that saves a copy of a workbook with a certain file name, on Mac OS 10.13.6

Some combination of either (I forget as I lost the original file) 'SaveAs' or 'SaveCopyAs', and a few parameters (or it might have been no parameters) caused the copy to save to my desktop and overwrite everything else. All files and folders on my desktop were deleted, and I was unable to recover them using several file recovery programs. I lost a lot of personal and work files. 

 

So if you're experimenting with VBA code to save files - do it with an empty folder. 

1 Reply
Pity you lost the code, as I'd have loved to take a look and see what was wrong with it.