Created
August 4, 2017 09:22
-
-
Save lanfon72/5595ae46cefd98b68e6c9007cf38fb7c to your computer and use it in GitHub Desktop.
open and save xls file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from win32com.client import Dispatch | |
def calc_formula(fname): | |
xls = Dispatch("Excel.Application") | |
return xls.Workbooks.Open(os.path.abspath(fname)).Close(True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment