DavidDC #1 I'd break up that one line and see if GetCurrentPage() is working. What event are you hooking into? Perhaps the page has already closed?