294
RIP Microsoft WordPad. You Will Be Missed
(gizmodo.com)
This is a most excellent place for technology news and articles.
That was in the first Word for Windows for 1989. The scripting built into word was later rebranded as VBA. I used it in 1990 to replicate the "Give me a Cookie" prank that was on Vax/VMS at the time.