Excel is one of the most popular tools for analysing data across the world. One can initialise Excel by utilising VB6, VBA or other applications from the office software. For this the user has to write a custom code in VBA. One of the most important points to remember in this case is to add a reference to the Windows Excel library. Here, Excel needs to be declared as the new application and then the workbook needs to be added. One can also specify the names of the worksheets along with specifying values for specific columns. Here is a little routine to call Excel from VB6 or another Office application. Paste in a general module (eg Module1)

Tags:
Tomasz David
Tomasz David

Leave a Comment