'Read Excel WordArt in Python

Any One tried to read excel WordArt that is inside XLS files. I'm using the below code but the problem it is dependent on MS Excel Application and needs to open the excel file, and this requires me to interact to input enable/disable Macros.

import xlwings as xw  
app = xw.App(visible=False,add_book=False)  
wb = app.books.open('gwk2mus201(32923r1)sample.xls')  
for sheet in wb.sheets:  
    for shape in sheet.shapes:  
        if "WordArt" in shape.name:  
            print(shape.text)            
wb.close()  
app.quit() 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source