Microsoft has announced a multi-year plan to phase out VBScript support in Windows, alerting developers that reliance on VBScript libraries within VBA projects will require timely migration.
The company’s roadmap outlines three distinct deprecation phases, coupled with built-in migration guidance and new RegExp support directly in VBA for Office builds 2508 and later.
Developers are urged to begin adapting code today to ensure compatibility and avoid disruptions when VBScript is finally removed.
Three-Phase Deprecation Timeline
The deprecation unfolds in three sequential phases. Phase 1, active now through 2026 or 2027, retains VBScript as an enabled Feature on Demand (FOD), preserving existing VBA project functionality.
Once Phase 2 commences—expected around 2026 or 2027 VBScript FODs will be disabled by default, requiring developers to manually enable the feature if still needed.
The final Phase 3, with timing yet to be confirmed, will excise VBScript entirely from forthcoming Windows releases.
At that point, VBA calls to external .vbs scripts will fail, and legacy references to VBScript.RegExp libraries will break unless projects target supported Office builds.
To smooth the transition, Microsoft has integrated RegExp classes natively into VBA as of Office Version 2508 (Build 19127.20154) and later.
Four object types, RegExp, Match, MatchCollection, and SubMatches, can now be instantiated via early binding without external library references.
This native support is available in Office 2508+ regardless of Windows client version. For environments where VBScript remains enabled or on older Office builds, developers can still employ late binding with CreateObject(“VBScript.RegExp”).
Microsoft recommends upgrading to Microsoft 365 Version 2508 or later to leverage built-in RegExp functionality and eliminate dependency on vbscript.dll.
Developers are encouraged to test VBA projects in VBScript-disabled environments to uncover hidden dependencies ahead of Phase 2.
New macros should reference the built-in VBE RegExp classes instead of manually linking to VBScript libraries.
Teams maintaining legacy Office versions can continue using VBScript.RegExp until Office is upgraded, but should plan to migrate before VBScript FODs are disabled by default.
Microsoft invites feedback via the Help Improve Office feature or through comments on the Microsoft 365 Developer Blog to refine migration tooling and documentation.
With a phased approach spanning several years, Microsoft aims to give developers ample time to update scripts while maintaining backward compatibility during the initial stages.
By adopting the new VBA RegExp classes now and testing in VBScript-free environments, development teams can ensure a seamless transition when VBScript finally vanishes from Windows.
Find this Story Interesting! Follow us on Google News, LinkedIn, and X to Get More Instant Updates