Hi folks,
Have recently transitioned from XL2003 to 2007 and am in the process of updating a number of add-ins for which I am responsible.
One of these makes use of Application.Dialogs(xlDialogOpen) to allow the user to select a file from a predefined network folder.
In XL2003, the following code worked fine
(where initialPath is a string containing the full UNC path with a trailing backslash, e.g. \\server\share\somefolder\someotherfolder\)
The above doesn't work in 2007 (the file open dialog displays but does not default to initialPath; instead it defaults to the Excel program folder on the user's C: drive, i.e. C:\Program Files (x86)\Microsoft Office\Office12).
I have tried the following to no effect:
I have also tried adding *.* and *.xl* to the path, as well as removing the trailing backslash, but the result is always the same, i.e. defaults to XL program folder.
Any guidance would be greatly appreciated.
Bookmarks