In recent InDesign versions things with Visual Basic are totally broken
Get network adapter Name/MAC/Speed script
“Cannot create ActiveX Component” error message