title: Open/Save File Dialog That Works with Windows 64-bit
body: <p>My open/save dialog box that used to work on windows XP no longer works on my Windows 7 64-bit. I have heard that 'MSComDlg.CommonDialog' is not compatible with 64-bit. Here is my old code:</p>
  
  <pre><code>' Sub to show open/save dialog
  SUB OpenSave (varOpenSaveInputBox, varOpenSaveType, varOpenSaveFilter)   
     ' Create object
     SET objComDlg32 = CreateObject("MSComDlg.CommonDialog")
     ' Set memory buffer
     objComDlg32.MaxFileSize = 260
     ' Set filter
     objComDlg32.Filter = varOpenSaveFilter
     ' Show dialog 
     IF varOpenSaveType = 0 Then
        objComDlg32.ShowOpen
     ELSE
        objComDlg32.ShowSave
     End IF    
     ' Get filename from dialog
     strOpenSave = objComDlg32.FileName
     ' Check IF dialog is cancelled
     IF strOpenSave &lt;&gt; vbNullString Then
        ' Set to variable
        objOpenSave.SetContent strOpenSave, TRUE
     End If
  END SUB
  </code></pre>
  
  <p>I would really appreciate if you be more specific with your answer rather than "Use this!". DLL and OCX is not really my strong suit. Thanks.</p>