I want to use FileExsits don't seem very right, because it my path is IS_PATH SAVEAS + \ "AAA", the file name is together,
CodePudding user response:
This struggle, with return value directly determine whether save or save that complete success open call API to open the file to processCodePudding user response:
The Return valueInteger. Returns 1 if it succeeds and 1 if an error occurs. If any argument 's value is null, SaveAs Returns null.
Ingeger li_f
Li_f=dw_1. Saveas ()
If li_ & lt;> 1 then
Messagebox (' prompt ', 'save failed)
The else
Messagebox (' prompt ', 'file successfully saved to' + IS_PATH + "\ AAA. XLS")
End the if
Actually saved using FileExsits function also can determine the,...