Filter löschen
Filter löschen

Enumeration of COM object properties (Excel)

3 Ansichten (letzte 30 Tage)
Matt C
Matt C am 27 Mär. 2021
Kommentiert: dpb am 27 Mär. 2021
I find myself looking to the VB documentation to determine the enumeration of various COM object properties. In VB, the string xlHAlignLeft can be used, however only the numeric (-4131) can be used in MATLAB. Are the numeric values of these character array pairs defined anywhere on the COM application, such that they could be referenced to allow the string rather than the number to be used? Just curious.
  3 Kommentare
Matt C
Matt C am 27 Mär. 2021
Thank you for the definitive response. I will probably just write a library to streamline the process. There are actually a few different lists online of all the enumerations. One could try and read these with urlread() and build a class...but that sounds like a lot of work.
dpb
dpb am 27 Mär. 2021
That or similar has always been my approach -- or just pick the ones of the C# header files of interest--I rarely use but a handful at any time from the gazillions there are.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Use COM Objects in MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by