Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I pass parameter to a property? #2000

Closed
weiw11 opened this issue Jan 3, 2023 · 2 comments
Closed

How do I pass parameter to a property? #2000

weiw11 opened this issue Jan 3, 2023 · 2 comments

Comments

@weiw11
Copy link

weiw11 commented Jan 3, 2023

Using Range.AddressLocal as an example, I'm unable to pass ReferenceStyle using Range.AddressLocal(ReferenceStyle=xlR1C1) as AddressLocal is a property and not a method.

Trying to do so will raise the following TypeError:

TypeError: 'str' object is not callable

@mhammond
Copy link
Owner

Is this a problem using Excel? See https://github.com/mhammond/pywin32#support

@weiw11
Copy link
Author

weiw11 commented Jan 20, 2023

I'm trying to figure out how we can pass multiple values to a property in python using the win32com package.

See VBA Range.AddressLocal documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants