I have never needed to use ChDir before a command like Workbooks.Open
I gave a macro that worked perfectly for me to my husband and his won't work without the ChDir.
Where I work there are public drives on the server, like K, M, N, Q.
If I want to open a file on a network drive, I use
Where he works he "maps a drive" (whatever that means) and this long path becomes "X:\MyWorkbook.xls"
(now the path on somebpdy elses PC wouldn't be X:\..., it would have to be mapped and it would be something else, like W:\....... why IDK ???)
In order to open the file from his PC the code must read
why do I need the ChDir for him but not me?
Is all the code I ever wrote "wrong" because it doesn't include ChDir?
Bookmarks