Originally posted by techyspecy
Listen dude,

this is absolutely right, but it never says once you make a reference from project menu - > references and still declare them as object it will be late bound. Once you make a reference its done.
Ha you think so.

So if i set a refernce to word and to excel and i'll code it like
VB Code:
  1. Dim obj As Object
  2.  
  3. If dudeAsks = "Excel" Then
  4.    Set obj = CreateObject("Excel.Application")
  5. Else
  6.    Set obj = CreateObject("Word.Application")
  7. End If

How could this be early bound , compiler won't know which class there will be used in this function.

If it would be a coding standard in the office to have early bound object you should need to set the dim statement in the If structure.

What will be done on compiling here then ??