'''this works Dim vbex As Object Set vbex = Application.VBE '''this gives Type mismatch error Dim vbex As VBE Set vbex = Application.VBE whatz up with that??? (obviously 'Msvb6.0Extensibility' is referenced) tia Mark