Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateObject vs "New" keyword

Status
Not open for further replies.

vjee

Programmer
Jan 16, 2002
23
BE
Hi,

a collegue of mine was given the advice, to use CreateObject instead of using the "new" keyword.
Dim xlObject = Excel.Application

set xlObject = CreateObject("Excel.Application")
set xlObject = New Excel.Application

She asked me what the advantage was of using CreateObject and why this should be used over the New keyword.

Since I don't know it, maybe somebody here knows the difference?

Thanks in advance...
Bart
 

See thread222-297780 for an excellent discussion on that topic. Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top