Also tried FileSave() command, but apparently that only works with LibreOffice, not OpenOffice.
Also tried reformatting the Flash drive to MS-DOS FAT(32) format because I must share this x.ods file with pc users. Can drag and drop the file to the flash drive without issue, but using the macro generates the error.
The Code "Snippet" is shown below.
Code: Select all
if CNT = "1" then
msg = "Insert Transfer Flash Drive in USB port(F:)" & CHR(10)
msg = msg & "then Click OK button Or Press Enter Key."
msgbox msg
dim args2(1) as new com.sun.star.beans.PropertyValue
args2(0).Name = "URL"
args2(0).Value = RSCINDrv & "/" & A
args2(1).Name = "FilterName"
args2(1).Value = "calc8"
dispatcher.executeDispatch(document, ".uno:SaveAs", "", 0, args2())
goto BC2:
end if