hi,
please help me on how to use folder browser dialog box. What I want to do is to locate the path where the user want to save the file and then enter the file name. thanks in advanced. :)

Dim fBrowse As New OpenFileDialog

            With fBrowse
                .Filter = "Excel files(*.xls)|*.xls|All files (*.*)|*.*"
                .FilterIndex = 1
                .Title = "Import data from Excel file"
            End With
            If fBrowse.ShowDialog() = Windows.Forms.DialogResult.OK Then
                Dim fname As String
                fname = fBrowse.FileName
'' Do what you want to here.
End If

I have shown the file format for .xls and All files, U can give according to ur need.