Thomas What you suggest might work, but does not look to elegant. Can anyone else perhaps suggest a more elegant solution? Thanks. Olaf try: excel.visible except AttributeError: print "late bound" else: print "early bound" Hint: Attributes are case sensitive when early bound ;-)