title: Run-time Error 9 for Workbooks.Activate
body: <p>I am having the error in Visual Basic when I try to use the function </p>
  
  <pre><code>Workbooks("C:\Documents and Settings\Nega\test.xls").Activate
  </code></pre>
  
  <p>The error says that: </p>
  
  <blockquote>
    <p>Error <strong>9</strong> in run time error: 
    <strong>Subscript out of range</strong>.</p>
  </blockquote>
  
  <p>I saw a lot of post about extension, but my file exists and the extension is correct.</p>
  
  <p>It is may problems of privileges? In that case how can I add privileges in VBA for this directory?</p>
  
  <p>Note: If I do <strong>Workbooks("test.xls").Activate</strong> it works (Ofc, with the file into the project). So for this I think it is about privileges.</p>
  
  <p>Thanks for the help.</p>