Link to home
Start Free TrialLog in
Avatar of ahelgeson
ahelgesonFlag for United States of America

asked on

Initdir to Desktop

OK, so to get to the
Application Path, you would put:
CommonDialog1.Initdir = App.Path

To get to the Windows Directory, you would put:
CommonDialog1.Initdir = Environ("WinDir")

How do I set the open dialog to open to the desktop?
Avatar of ahelgeson
ahelgeson
Flag of United States of America image

ASKER

I just figured it out:

CommonDialog.InitDir = Environ("USERPROFILE") & "\Desktop"
ASKER CERTIFIED SOLUTION
Avatar of rspahitz
rspahitz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial