' This macro routine makes VS.NET switch to the previously selected code editor ' / designer window, if it is still open. It is equal to opening the Windows ' menu and selecting the 2nd window.' Note: put this routine in the MyMacro project, by using the Macro Explorer. ' To use it, just click the routine name in the Macro Explorer,' or better yet assign it a keyboard shortcut, from the Tools | Options... ' dialog window, in the Environment/Keyboard page.Sub GotoPreviousWindow() DTE.Commands.Raise("{5EFC7975-14BC-11CF-9B2B-00AA00573819}", 571, Nothing, _ Nothing)End Sub