a sample drawing would have been nice but mhubb's code could be the answer if your viewports are all over the place , but right now only you can answer that question. Or maybe your viewport sits inside a border or titleblock? In that case you could retrieve the corner points of your titleblock. But is it so much trouble to click on erase yourself , select all , remove window? Of course I agree , one click is better than two or more