Like sp_MSforeachtable and sp_MSforeachdb? Then you'll love sp_foreachroutine!
Okay, that was cheesy. But it got the point across. Same as those undocumented MS-shipped procs, but it operates on routines (procedures/functions/views/triggers) instead.
Get it here!