This may be a silly question - I haven't found anything on Google about this. No new programs populate in the task manager when VBE is opened from an Office Application, and I don't see an executable that looks probable. DLL maybe?
相关问题
- Converting byte array output into Blob corrupts fi
- Passing a namespace into a function
- How to name and reference an Excel range using off
- Using a 32bit COM object in a 64bit environment
- Method 'VBE' of object '_Application
相关文章
- Directly signing an Office Word document using XML
- Excel merge cell date and time
- What Component IDs should I search for to detect w
- Clear Microsoft Office Add-Ins cache
- How can I load another new Word document in the sa
- Word 2007 macros: is there an OnPrint event I can
- VBA Error Handler that emails me when errors occur
- How do you dynamically create controls on a MS Acc
You can invoke a
CommandBarButton
'sOnAction
macro as a proxy forApplication.Run
.For details, see this question How can I run a macro from a VBE add-in, without Application.Run?
Some Office applications provide the Run method for the Application class. For example, see Run Excel Macro from Outside Excel Using VBScript From Command Line.
Yes, you can call VBA macro at runtime.
There are applications that don't provide any specific methods for that, for example, Outlook. In that case you can use the late-binding technology (see Type.InvokeMemeber) - see Calling Outlook VBA Macro from outside (VB/VBScript/C#).