On Tue, Jun 3, 2014 at 12:40 AM, Jaydeep Patil <patil.jay2...@gmail.com> wrote: > Hi Lan, > > Currently I am doing some automation in python excel. It read the data & > plots number of graphs. It took more than 20 minutes. So while running my > python program if user clicks on excel, error came. > > So just i want to lock GUI not workstation. > > I hope you understand this. > > Let me know if you have any idea about it.
You can set the Application.Interactive property on Excel to block user input: http://msdn.microsoft.com/en-us/library/office/ff841248(v=office.15).aspx Example: excel_app = win32com.client.Dispatch("Excel.Application") excel_app.Interactive = False try: # Do some automation... finally: excel_app.Interactive = True -- https://mail.python.org/mailman/listinfo/python-list