这段是打开带密码的excel的代码
from import Dispatch
xlApp = Dispatch("")
= False # True代表Excel在前台打开,False是在后台打开
xlwb = (Filename=filename,UpdateLinks=2, ReadOnly=True,Format = None,Password=,WriteResPassword=)
from import Dispatch
xlApp = Dispatch("")
= False # True代表Excel在前台打开,False是在后台打开
xlwb = (Filename=filename,UpdateLinks=2, ReadOnly=True,Format = None,Password=,WriteResPassword=)