I wrote the Accessibility Macros for Visual Studio 2005, my proud 131 line contribution to the product.
There are 4 macros
To view the macro code, go to Tools – Macro IDE. Then open the Project Explorer in the Macro IDE. Double-click on Samples, and open Accessibility. You can run the commands from there or bind them to a keyboard shortcut.