If your code opens the other workbook, then just store the current workbook:
Note though that it is very rarely necessary to activate anything in code to work with it.Dim wbkActive as workbook Dim wbkNew as workbook set wbkActive = activeworkbook set wbkNew = workbooks.open("path") wbkactive.activate
Good luck.
thanks, but my "Path" will always change though based on name = path (today minus 2 business days)
Path refers to the other workbook you are opening.
Good luck.
Ok i got it implemented. thanks gentelment
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks