ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   defaulting to the desktop (https://www.excelbanter.com/excel-programming/348652-defaulting-desktop.html)

Ed

defaulting to the desktop
 
How do I get the save dialog box to default to the user's desktop?
I basically need to know how to get the path to the user's desktop.
--
Thanks - Ed

Tom Ogilvy

defaulting to the desktop
 
Sub SetMyDocs()
Dim o As Object
Set o = CreateObject("WScript.Shell")
MsgBox o.SpecialFolders("Desktop")
End Sub

--
Regards,
Tom Ogilvy



"Ed" wrote in message
...
How do I get the save dialog box to default to the user's desktop?
I basically need to know how to get the path to the user's desktop.
--
Thanks - Ed





All times are GMT +1. The time now is 06:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com