GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pyxll/_exceltypes: win32com extension for Excel types

This repository was archived by the owner on Jan 13, 2021. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
exceltypes
exceltypes
 
 
src
src
 
 
README.md
README.md
 
 
setup.py
setup.py
 
 

Repository files navigation

This module is no longer necessary for doing Real Time Data in Excel with Python. See https://www.pyxll.com/docs/userguide/rtd.html

exceltypes

The exceltypes package is a set of C++ Python types wrapping a sub-set of the Excel COM types. It is an extension to pywin32 and so pythoncom.PyIUnknown instances can be cast to exceltypes types using the QueryInterface method.

The motivation behind this package is that although the Excel object model can be used via the wrappers generated by win32com's makepy wrappers, these all rely on the IDispatch.Invoke method and at least one type (IRTDUpdateEvent) only works when called via the vtable binding and not when called via its IDispatch interface.

Building

Build using the included setup.py. Use the --help and --help-commands options for more information about available options.

python setup.py install

Examples

Cast a pythoncom.PyIDispatch object to an excel.PyIRTDUpdateEvent object:

import exceltypes

# cast an object to a PyIRTDUpdateEvent instance using QueryInterface
#obj = <a PyIDispatch object passed from Excel>
update_event = obj.QueryInterface(exceltypes.IID_IRTDUpdateEvent)

References

  • http://stackoverflow.com/questions/9985512/excel-rtd-server-in-python-not-updating-data
  • https://mail.python.org/pipermail/python-win32/2012-April/012207.html

About

win32com extension for Excel types

Resources

Readme
Activity
Custom properties

Stars

6 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.