top of page
The VBA Help blog
Search
Custom events in VBA with WithEvents and RaiseEvent
Most VBA developers only ever consume events like Worksheet_Change. But you can declare and raise your own. This post builds a small worker Class that raises events and a listener that handles them ... without the Class knowing who's listening.
5 days ago3 min read
Â
Â


Calling methods and properties by name in VBA with CallByName
Sometimes you don't know until run time which method to call ... the name's sitting in a cell, a file, a registry key or a button's Tag. VBA's CallByName turns that String into a call: getting or setting a property, or calling a method, by name.
Jun 233 min read
Â
Â


Callbacks in VBA using AddressOf
Most of the procedures you write are called by you, or by VBA on your behalf. A callback turns that around: you hand another piece of software the address of one of your own procedures and let it do the calling. How to do this in VBA is with the AddressOf operator.
Jun 93 min read
Â
Â


Articles: Blog2
bottom of page