title: File selector, How do i specify filetype?
body: <p>I have the following code that opens a file selector and lets the user pick a file.</p>
  
  <pre><code>Sub SelectFiles(ByRef test As String)
  
      Dim iFileSelect As FileDialog
      Set iFileSelect = Application.FileDialog(msoFileDialogFilePicker)
  
      Dim vrtSelectedItem As Variant  
  
          If iFileSelect.Show = -1 Then            
  
              For Each vrtSelectedItem In iFileSelect.SelectedItems
                  test = vrtSelectedItem
              Next vrtSelectedItem
  
          End If
  
      Set iFileSelect = Nothing
  
  End Sub
  </code></pre>
  
  <p>I would like it to only display files of a certain type (in this case XML) as it is now, the user can select any file type.</p>
  
  <p>I have been through some creative Google searches but cant seem to find a solution and I have a feeling that it should be quite simple.</p>