I had a similar Q today, heres one of my comments
Early v late binding:
Early binding
- Need to add a refrence (Tools - refrences)
- Faster
- Will fail if the exact refrence (dll) is not on the pc
- use like Dim xl as Excel.Application
Set xl = New excel.application
Late Binding
- slower
- No refrences (tools - refences)
- Will work on for example Excel 97 if you develop on Excel 2000 (if same properties / methods were present)
- Use like - Dim xl as object
set xl = createobjecy("excel.applic
Main Topics
Browse All Topics





by: flavoPosted on 2004-08-03 at 00:55:53ID: 11701343
If you use early binding then no.
ation")
You'll need to use late binding. (its slower though)
You dont need refrences for this, so get rid of them
Example usage
Dim objExcel as object
Set objExcel = CreateObject("Excel.Applic