Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
446 views
in Technique[技术] by (71.8m points)

python - Need to turn off dialogue box or make the update button clicked on excel while running a xlsxwriter script

I'm trying to writing and reading a excel file using xlsxwriter. First I opened the file and did some operations and saved that, Next I had to open the another file which is linked to the previous file, that time a dialogue box appears with warning. Until I click update button script won't run. Is there any way to close all dialogue box's or any way to make the update button clicked.

A little bit of hint or any way would be very helpful. Thank you very much.

enter image description here

Codes for opening and writing the file.

excel = win32.gencache.EnsureDispatch('Excel.Application')
wb = excel.Workbooks.Open(newpath)
excel.Visible = True
excel.DisplayAlerts = False
ws = wb.Worksheets('Python_Inputs')
wb.Save()excel.Quit()
question from:https://stackoverflow.com/questions/65851468/need-to-turn-off-dialogue-box-or-make-the-update-button-clicked-on-excel-while-r

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...