title: Method or data member not found when executing Application.Screenupdating?
body: <p>I button calls the following procedure:</p>
  
  <pre><code>Sub ImportData()
      Dim currentCalculationMethod As Integer
  
      Application.ScreenUpdating = False
  
      currentCalculationMethod = Application.Calculation
      Application.Calculation = xlCalculationManual
  
      Call ClearData
      Call LoopFiles
  
      Sheets("Start").Activate
  
      Application.Calculation = currentCalculationMethod        
      Application.ScreenUpdating = True
  
  End Sub
  </code></pre>
  
  <p>All of the sudden I am getting an error message that "method or data member not found" and the VBE highlights <code>.ScreenUpdating = False</code> for me. What could be the problem that is causing this?</p>
  
  <p>I am running Excel 2013.</p>
  
  <p>This problem does not seem to exist in other files. I don't know what has happened in this file that is causing this.</p>
  
  <p>EDIT:</p>
  
  <p>When I try to run:</p>
  
  <pre><code>Sub GetFolder()
      Dim f As Office.FileDialog
      Set f = Application.FileDialog(msoFileDialogFolderPicker)
      With f
          .Title = "Select a Folder"
          .AllowMultiSelect = False
          If .Show Then
              ThisWorkbook.ActiveSheet.Range("folderPath") = .SelectedItems(1) &amp; "\"
          End If
      End With
  End Sub
  </code></pre>
  
  <p>then I get the same error message and Excel highlights <code>.FileDialog</code>.</p>