title: Dim Workbook in CorelDraw VBA Macro not compiling
body: <p>I am writing a CorelDraw macro that fetches some data from Excel by opening a <code>Workbook</code>.</p>
  
  <p>I like to declare my variables before using them (and also normally require this with <code>Option Explicit</code>).</p>
  
  <p>In this sub, I declare my <code>Workbook</code> variable as:</p>
  
  <pre><code>Sub needsWorkbookType()
      Dim notCompile As workbook
  End Sub
  </code></pre>
  
  <p>However, because I am running this from CorelDraw, I do not have access to Excel's types. When I try to run the sub, I get a compile error:</p>
  
  <ul>
  <li>User-defined type not defined</li>
  </ul>
  
  <hr>
  
  <p>I know I can get around this by turning off explicit declaration, and just not declaring any of the Excel variables. The interpreter will dynamically create them and it will work.</p>
  
  <p>But I would prefer to be able to declare them.</p>
  
  <hr>
  
  <p>My system is:</p>
  
  <ul>
  <li>Windows 8.1</li>
  <li>Excel 2013</li>
  <li>Corel X6</li>
  </ul>