The macro to change the current layer to another specific layer is
! _-Layer _Current “xxxx”
To do this and run the detail command (as in Layout Detail) you would…
! _-Layer _Current “det” _Enter _detail _add _enter
My question is whether there is any phrasing that I could add to the end of the above macro that would return me to the original layer I was on before I switched layer by running the above macro?