K
Karen
I have imported some code provided with the Microsoft Press MS Office 2000
Visual Basic for Application Fundamentals book. This code allows one to
display the the Windows system File Dialog Box. There is also other code
that is typed in a new code module that allows one to use the imported code.
This is that code
------
Sub getfilewithsystemfiledialog()
Dim sFileName As String
Dim udtFileDialog As FileDialog
With udtFileDialog
.CustomFilter = "Order Acknowledgements" _
& Chr$(0) & "oeack*.prt" & Chr$(0) _
& Chr$(0)
.DefaultExt = "oe*.prt"
.Title = "Browse"
.InitialDir = "\\lamotte1\macapps\macsql\data_02"
sFileName = modFileDialog _
.WinFileDialog(udtFileDialog, 1)
End With
If Len(sFileName) > 0 Then
Debug.Print sFileName
End If
End Sub
------
All of this works okay for me.
My question is: Does anyone know how I can change defaults on that dialog
box that is displayed? I would like to have it come up showing the files in
Detail layout and also change the columns of detail shown to show the owner
of the files.
if you need to see the code that was imported, please respond with that
request.
Karen
Visual Basic for Application Fundamentals book. This code allows one to
display the the Windows system File Dialog Box. There is also other code
that is typed in a new code module that allows one to use the imported code.
This is that code
------
Sub getfilewithsystemfiledialog()
Dim sFileName As String
Dim udtFileDialog As FileDialog
With udtFileDialog
.CustomFilter = "Order Acknowledgements" _
& Chr$(0) & "oeack*.prt" & Chr$(0) _
& Chr$(0)
.DefaultExt = "oe*.prt"
.Title = "Browse"
.InitialDir = "\\lamotte1\macapps\macsql\data_02"
sFileName = modFileDialog _
.WinFileDialog(udtFileDialog, 1)
End With
If Len(sFileName) > 0 Then
Debug.Print sFileName
End If
End Sub
------
All of this works okay for me.
My question is: Does anyone know how I can change defaults on that dialog
box that is displayed? I would like to have it come up showing the files in
Detail layout and also change the columns of detail shown to show the owner
of the files.
if you need to see the code that was imported, please respond with that
request.
Karen