Hacker News
Monkey Patching in VBA
password4321
|next
[-]
Interesting to see this HN user on a campaign to promote a boutique new language running on top of VBA.
20251227 https://news.ycombinator.com/item?id=46403704 Hacking VBA to support native scripting runtime with no COM dependencies
asveikau
|next
|previous
[-]
layer8
|root
|parent
|next
[-]
VBScript is deprecated since 2023 and in the process of being removed: https://techcommunity.microsoft.com/blog/windows-itpro-blog/...
You also cannot run VBScript (nor JScript) from VB or VBA, other than invoking it as a separate process. VBA is not an "embedding of VBScript". VB/VBA are compiled to an intermediate representation called P-code, they aren't scripts in the sense of being executed from a textual representation like VBScript/JScript.
n013
|next
|previous
[-]
EvanAnderson
|next
|previous
[-]
> JavaScript-like scripting language implemented entirely in VBA. Zero COM dependencies. Native Office object model integration with runtime monkey patching capabilities.
That's bananas!
The specific feature being referred-to by the current title ("Monkey Patching in VBA") is functionality to allow you to override or add additional methods to the stock Office COM objects in this ASF scripting language. That's wild.
The extensibility of the Office object model using VBA is powerful and horrifying.