CommonDialog Controls?

Is there documentation somewhere about using multiple instances of the CommonDialog control. I need to allow for a user to define several files for I/O. Each file has a distinct purpose that precludes the user merely selecting multiple files together. I have tried using just one Common Dialog control referenced at various times with different features and that didn't work. Also, tried defining a CommonDialog control for each of the files but that produced erratic results (File Open Dialog instead of a File Save or vice versa).

Example:
Two pre-existing files need to be referenced in program for input. (e.g. file1, file2 using File Open)
Two files need to be defined for saving various outputs. (file3, file4 using File Save or File Save As...)

Any on have some ideas on how to do this without using multiple programs? That seems to be my only option from what I've found so far, yet I have seen programs that allow for the definition of both input and output file(s) that use the CommonDialog control for the definitions of both.

btw... All the files are Excel Spreadsheets (*.xls) if that possibly has any bearing on things
[1177 byte] By [NatThoelecke] at [2007-11-18 18:23:32]
# 1 Re: CommonDialog Controls?
Almost forgot this code snippet which is the general template for the what I am trying to do.

Private Sub btnOpenInputFile_Click()
dlgFileName.CancelError = True
On Error GoTo errHandler

' text and csv filters for getting data created in other programs (universal compatability)
dlgFileName.Filter = "Excel Files (*.xls)|*.xls|CSV Files (*.csv)|*.csv|Text Files (*.txt)|*.txt|All Files (*.*)|*.*"
dlgFileName.FilterIndex = 1
dlgFileName.ShowOpen
txtFilePath.Text = dlgFileName.FileName

lblPath.Caption = Left(dlgFileName.FileName, Len(dlgFileName.FileName) - Len(dlgFileName.FileTitle))
InitGlobals

errHandler:
Exit Sub
End Sub
NatThoelecke at 2007-11-9 23:15:18 >