I'm writing a code to save the changes made to excel file using the button click option.
The code for that is very simple:
workbook.Save()
workbook.Close()
App.close() - this is to close the Excel.Application
However, when I click the button I need to wait a bit and this image appears I would show the image but due to not having 10 reputation it doesn't let me, so I will explain.
The image form has the title File Now Available and below that in the description it said " 'test4.xlsx is not available for editing. Choose Read-Write to open it for editing "
When I click the cross top right of image the excel file opens and then I have to close that. Once done then I can read that file again.
Is there a way I can write a code whereby that image message doesn't appear and it closes the file properly, as I believe this code doesn't fully close it.
Any help is appreciated
Thank You