i'm defining a function to save files as .xls format:
Public Function save_as_xls(full_file_path As String) As String
    save_as_xls = ""
    Dim src_file As Workbook
    Set src_file = Workbooks.Open(full_file_path)
    src_file.SaveAs filename:=full_file_path, FileFormat:=xlExcel8
    src_file.Close
    save_as_xls = "OK"
End Function
then call it in excel cell formula as =save_as_xls("c:\temp\test.xls")
However, it doesn't work, the src_file get Nothing from Workbooks.Open
Is there a limitation on vba functions that cannot open files? I only know that it can't write to other cells.
 
     
    