win32com problems with Visible property

Bob Gailer bgailer at alum.rpi.edu
Wed Sep 3 10:33:59 EDT 2003


At 04:07 PM 9/2/2003 -0400, David Rushby wrote:

>"Rebecca Taylor" <jrbexbox at hotmail.com> wrote in message
>news:f431a335.0309020839.486b6f92 at posting.google.com...
> > I have been working with win32com on python for 2 years now.  I
> > recently tried to modify an older script I had made which creates and
> > excel workbook, fills it with data and then graphs the data.
> >
> > Nothing is working!
> > When I try to run it I get this error:
> >
> > "Property '%s.%s' can not be set." % (self._username_, attr)
> > AttributeError: Property 'Excel.Application.visible' can not be set."
> >
> > Does anyone know why this is happening?  I can't figure out if windows
> > has changed or if win32all or the new python distribution is the
> > problem.  Worse yet, I reinstalled my old versions of python and
> > win32all and that isn't working either!
>
>The property is named 'Visible', not 'visible'.
>
>When makepy is run, COM identifiers become case-sensitive.  Perhaps your old
>installation of win32com hadn't been makepy-ified, but the new one has?

I don't think this is the problem. If it were the OP would get an attribute 
error. "...object has no attribute 'visible'"

Bob Gailer
bgailer at alum.rpi.edu
303 442 2625
-------------- next part --------------

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003


More information about the Python-list mailing list