I'm pretty sure it's not a 2013 bug. I run 2013 myself...
You can check a couple of things:
The dialog will show the path specified, but if the path is wrong/doesn't exist, the default path will be shown instead.
So are you absolutely sure the path ("C:\Users\c755748\Desktop") is correct/exists?
If this is the path to YOUR desktop and the user using this, is on a different machine, I can say with 99% certainty, thet the path won't be the same.
You need to "catch" the users desktop path.
In this case you could use Kenneth Hobson's solution, or:
As I was going to suggest:
Code:
Application.Dialogs(xlDialogSaveAs).Show Environ("USERPROFILE") & "\Desktop\" & Sheet2.Range("D4").Value, 52
But Kenneths codepiece seems much more reliable:
Code:
Application.Dialogs(xlDialogSaveAs).Show CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\" & Sheet2.Range("D4").Value, 52
Thank you for that Kenneth Hobson, didn't know this one...
You could also try to replace double backslashes to be absolutely sure (I'm not sure if there's any downfall to this. UNC paths have doubleslashes but I would never expect the Desktop to reside on a UNC path. Is that just me being ignorant?):
Code:
Application.Dialogs(xlDialogSaveAs).Show [COLOR=#ff0000]Replace([/COLOR]CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\" & Sheet2.Range("D4").Value[COLOR=#ff0000], "\\", "\")[/COLOR], 52
Other things to try:
What is the exact value in Sheet2("D4")? If for example the value in D4 is something like this: "\FileName", the path the dialog is trying to navigate to would be this:
C:\Users\c755748\Desktop
\\FileName
Which is incorrect/doesn't exist (note the two
\\), and therefore the dialog will go to the default path (you could try the Replace function to correct this or correct it manually in D4).
You can try this in the Immediate window and doublecheck that the path is correct:
Code:
MsgBox "C:\Users\c755748\Desktop\" & Sheet2.Range("D4").Value
Have you tried tygrrboi's suggestion with the Immediate window? What's the result?