assign the file name to a string and then activate it.

Code:
wbk = activeworkbook.name
windows(wbk).activate