This class is Work In Progress
.
Initially it's main purpose will be to help obtain various information about the Excel application which is difficult to obtain otherwise.
Long term the hope is to create a layer over the existing Excel API which is stdVBA complient.
CreateFromApplication
- Creates from an existing instanceCreateFromHWND
- Creates from an existing instance via HWNDCreateFromAllApplications
- Creates a collection from all existing Excel application instancesWIP CreateNewInstance(Optional AccesVBOM = vbYes)
- Create a new instance of Application. Optionally enable VBOM, default yes.WIP Get EditMode
: will returnUndefined
,Ready
,Enter
,Edit
,Point
dependent on whether theWIP Get VBARuntimeType
: will returnRunning
,Break
orStopped
. This ultimately boils down to whether the code is running or not, and can be found ordinarily in the caption of the VBA window, but can be read even while VBA is running (i.e. by another application)WIP Get VBAMode
- a.k.aEbMode
. Can currently only be run from the instance itself. Returnstrue
if the code is 'running' andfalse
if not. I.E. This will be true if any code has run, global objects are alive etc. It will only switch back to false when clicking the Stop button.WIP Get VBOM
- returnsstdEnumerator<Workbook>
WIP Get Workbooks
- returnsstdEnumerator<Object<xlWorkbook>>
- ...