BASIC runtime error.
An exception occurred 
Message: SfxBaseModel::impl_store <file:///D:/Sheet.xls> failed: 0x20d.

on this code

Dim SaveParams(1) As New
SaveParams(0).Name = "Overwrite"
SaveParams(0).Value = TRUE
SaveParams(1).Name = "FilterName"
SaveParams(1).Value = "MS Excel 97"

on windows can happen if FilePath already exists and opened THUS LOCKED ON WRITE by OS.

It's too dangerous to go alone, take this:

Leave a Reply