title: VBS Running Macro Enabled Workbook Error 800A9C68
body: <p>I'm having a small issue with a VBS script I pieced together from the internet. </p>
  
  <pre><code>Dim xlApp, xlBook
  
  
  Set xlApp = CreateObject("Excel.Application")
  xlApp.DisplayAlerts = False
  Set xlBook = xlApp.Workbooks.Open("LOCATION", 0, True)
  
  
  xlapp.Visible = True
  
  xlApp.Run "RefreshAdj"
  
  xlBook.Close False
  set xlBook = Nothing
  
  xlApp.Quit
  Set xlApp = Nothing
  
  WScript.Echo "Finished."
  WScript.Quit
  </code></pre>
  
  <p>It will run off task scheduler but it always gives this error.</p>
  
  <pre><code>Line: 11
  Char: 1
  Error: Unknown runtime Error
  Code: 800A9C68
  Source: Microsoft VBScript runtime Error
  </code></pre>
  
  <p>Its not that big of a deal, but slightly annoying because it will not run the next day until someone clears the dialog box for this error.</p>
  
  <p>Anything Helps.</p>