troubleshooting Question

Required dll files for creating Excel files

Avatar of MariaHalt
MariaHaltFlag for United States of America asked on
Visual Basic ClassicMicrosoft Excel
6 Comments1 Solution444 ViewsLast Modified:
What dll files are required to run a VB6 program that creates an Excel file on a W2K machine?  Excel is NOT loaded on the machine.  

FYI, this is how I'm creating the Excel file:

Dim xclApplication As Excel.Application
Dim xclWorkbook As Excel.Workbook
Dim xclWorksheet As Excel.Worksheet

Set xclWorksheet = xclWorkbook.Sheets("Sheet1")

 xclWorksheet.Range("A2").CopyFromRecordset <recordset object>
   
 xclWorksheet.Range("A1").Value = "Field 1"
 xclWorksheet.Range("B1").Value = "Field 2"
 xclWorksheet.Range("C1").Value = "Field 3"
       
Set xclWorksheet = Nothing
xclWorkbook.SaveAs <filename>
xclApplication.Quit
Set xclWorkbook = Nothing
Set xclApplication = Nothing
ASKER CERTIFIED SOLUTION
JohnBPrice

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 6 Comments.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 6 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004