API InitialDir parameter

D

DZ

I inherited an API for Windows open dialog

I want to change the InitialDir:="C:\" parameter from C Drive to Desktop

Does anyone know how to do this


DZ
 
G

Gary''s Student

If you have the ENVIRON() function then:

Sub makes_me_DZ()
Dim s As String
s = Environ("username")
s2 = "C:\Documents and Settings\" & s & "\Desktop"
End Sub

makes a string giving the path to the current user Desktop
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top