I found the following piece of code, I think in this forum, and have used it to help find and open files from within Excel.
This time, however, I have a problem. When I was first setting up the code I uploaded a standard file from my local disc. The variable FilepathName was given the value of "C:\Users\John\Documents\".Please Login or Register to view this content.
When this was successful the variable FilePathName was set to "U:\Everybody\LabelOrders\Vista\". as needed when the application is used inearnest. The routine still worked but persisted with opening up at the first FilePath.
Watching the code execute showed that at the line marked ****** that fdl.InitialFileName persisted with old value of FilePathName and did not seem to follow the instruction in the code line. This persisted even after I had closed and reopened Excel.
The application is itself filed in C:\Users\John\Documents.
How can I ensure that fdl. InitialFileName is filled with the file path I want?
Johnm
Bookmarks