daren.beaney
New Member
- Joined
- Jun 14, 2011
- Messages
- 16
Hi, I have this code that works fine for majority however the way people access the folder from different offices is causing an issue. Basically if I use the direct path as shown in the code, it doesn't work, so I wondered if there is a way for the code to identify current path and then place the backup copy of the file into the Archive folder, which is a folder in the current file location.
Hope that makes sense.
Here's my current code:
Thanks in advance.
Hope that makes sense.
Here's my current code:
Code:
ThisWorkbook.SaveCopyAs "F:\Adfact\Adelphi Modernisation\Business Change & Comms\01 Stakeholders\Archive\" _
& Replace(ThisWorkbook.Name, ".xlsm", " (" & Environ("USERNAME") & Format(Now, "dd-mm-yy hhmm") & ").xlsm")
Thanks in advance.