Your Microsoft Excel package includes code samples you can open and run. You can copy any part of the samples into your own applications, modifying them as necessary. These code samples are located in the Samples.xls workbook in the Examples folder in your Microsoft Excel folder.