title: SaveAs or save dialog box for DOM in VBA
body: <p>I'm trying to save  a DOM doc and the save method works just fine:</p>
  
  <pre><code>xDoc.Save "myFileName"
  </code></pre>
  
  <p>but I'd like the user to be able to pick the path and potentially the name.  So I tried:</p>
  
  <pre><code>xDoc = "Application.FileDialog(msoFileDialogSaveAs).Show"
  If myNum &lt;&gt; 0 Then
      XDoc = Application.FileDialog(msoFileDialogSaveAs).SelectedItems(1)
  End If
  </code></pre>
  
  <p>This opened a SaveAs dialog box but when I click ok I get a run time "object doesn't support this property or method".  I knew it probably wouldn't work but thought it made sense that it should.</p>
  
  <p>Anyone know how to open a SaveAs dialog box with VBA to save a DOM(Document)?</p>