Note that there are some explanatory texts on larger screens.

plurals
  1. POVBA: Get Excel FileDialogOpen to point to "My Computer" by default
    primarykey
    data
    text
    <p>I'm trying to get excels save and open dialog boxes to open to "my computer" by default so the user can select a drive from there.</p> <p>I have got the dialog boxes to open to any path on any drive or my documents etc but can't seem to find a way for it to open to my computer.</p> <p>This is the code i'm using at the moment and it works fine for a known path: </p> <pre><code>MsgBox objFolders("desktop") ChDrive objFolders("desktop") ChDir objFolders("desktop") strFileName = appRemoteApp.Workbooks("Export Template.xlsm").Application.GetSaveAsFilename(objFolders("desktop") &amp; "\Replica Export " &amp; UserName &amp; " " &amp; Format(Date, "yymmdd") &amp; ".xlsm", FileFilter:="Excel Macro Enabled Workbook (*.xlsm), *.xlsm,") </code></pre> <p>Also, I have found this from <a href="http://forums.winamp.com/showthread.php?t=176462" rel="nofollow">this site</a>.</p> <p>If you paste <code>::{20D04FE0-3AEA-1069-A2D8-08002B30309D}</code> into windows explorers address bar it takes you to my computer but if I use this in my VBA code</p> <pre><code>ChDir "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" </code></pre> <p>it says it cant find the directory or something. So not sure if there is a work around for this or something.</p> <p>This did not work either:</p> <pre><code>ChDir "C:\WINDOWS\explorer.exe /root,,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" </code></pre> <p>The reason i'm wanting to have the dialog boxs open to computer is that we will be hosting the excel doc on a windows server with access though RemoteApp and remote desktop. The users will not have access (rights) to the servers drives and folders etc, they will only have access to their own drives on their local machines which will be mapped and are visible under the servers "My Computer" folder for lack of a better word. The master document on the server generates a replica using VBA code and is then saved to the users local hard drive.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload