Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm not sure this is helpful for <em>embedding</em> Excel, but assuming that the Excel engine is at the core of the embedded controls, you can look <a href="http://msdn.microsoft.com/en-us/library/aa272310(office.11).aspx" rel="nofollow noreferrer">here</a> for an alphabetized reference of the objects available for Excel 2003.</p> <p>And <a href="http://msdn.microsoft.com/en-us/library/aa272254(office.11).aspx" rel="nofollow noreferrer">here</a> for the root of the Excel VBA reference, which includes a section "Concepts" that discusses the major objects, like workbooks and worksheets, cells and ranges, etc.</p> <p>You'll have to set a reference to the Excel objects in your project before you can create any of these objects. Under Project/References, you'll find something like "Microsoft Excel 9.0 Object Library." (I have Office 2000, thus the 9.0. Based on the links above, I imagine that for Excel 2003 you'll see Excel 11.)</p> <p>In your code, do something like this:</p> <pre><code>' Start a new workbook in Excel ' Dim oExcel As Excel.Application Dim oBook As Excel.Workbook ' Launch an instance of Microsoft Excel ' Set oExcel = new Excel.Application Set oBook = oExcel.Workbooks.Add </code></pre> <p>Then proceed to code against the application, workbooks, etc. The above code will create an instance of Excel that's <em>not</em> embedded, but in it's own window. One thing to be aware of is that by default, that Excel instance will not be visible. You have to set the Visible property to True before you can see it.</p> <p>Hope this helps.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload