you'll need to get the window's handle. findwindow(vbnullstring,"Calc")