Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default late binding in excel

I have to send mail in excel in different windows versions. how to use the late binding to initiate the objects??

Million thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default late binding in excel

Here's an article about Late and Early Binding.
http://support.microsoft.com/default...b;EN-US;245115

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Grey" wrote in message
...
I have to send mail in excel in different windows versions. how to use the
late binding to initiate the objects??

Million thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default late binding in excel

Grey,

Here is a previous post of mine that talks abort developing using early binding (for development ease) and changing to late binding (for release) use mail as its example. And another post on the advantages/disadvantages or early/late binding.

Take a look at this recent discussion on the topic. It answers a question on
CreateObject against New, but as these are intrinsically tied to late vs.
early binding, that is what is really discussed.

http://tinyurl.com/2ay78

And here is a previous post of mine on how to go about the approach that Ron
discusses, so you will get an idea of the overhead

http://tinyurl.com/2qern



--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Grey" wrote in message ...
I have to send mail in excel in different windows versions. how to use the late binding to initiate the objects??

Million thanks
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default late binding in excel

<<It answers a question on CreateObject against New, but as these are
intrinsically tied to late vs.
early binding

Hi Bob,

The only thing that determines late binding vs. early binding is the
object variable declaration.

Dim X As SpecificObject

is always early bound and

Dim X As Object/Variant

is always late bound.

Set X = CreateObject("Lib.SpecificObject") and Set X = New
SpecificObject both return strongly typed references to the object in
question. The only difference is that New uses the object's type library
directly while CreateObject looks up the details in the registry, making New
a bit more efficient. The return result of either CreateObject or New can be
assigned to either an early bound or late bound variable.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"Bob Phillips" wrote in message
...
Grey,

Here is a previous post of mine that talks abort developing using early
binding (for development ease) and changing to late binding (for release)
use mail as its example. And another post on the advantages/disadvantages or
early/late binding.

Take a look at this recent discussion on the topic. It answers a question on
CreateObject against New, but as these are intrinsically tied to late vs.
early binding, that is what is really discussed.

http://tinyurl.com/2ay78

And here is a previous post of mine on how to go about the approach that Ron
discusses, so you will get an idea of the overhead

http://tinyurl.com/2qern



--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Grey" wrote in message
...
I have to send mail in excel in different windows versions. how to use the
late binding to initiate the objects??

Million thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Late Binding issue with Excel.Application object [email protected][_2_] Excel Discussion (Misc queries) 2 August 4th 09 08:10 AM
Late binding to Excel from Access causing Object error EagleOne@microsoftdiscussiongroups[_2_] Excel Discussion (Misc queries) 4 June 14th 08 12:45 AM
EARLY binding or LATE binding ? jason Excel Programming 6 February 26th 04 04:57 PM
Creating a MailItem in Outlook from Excel using Late Binding Steven Kelder Excel Programming 3 December 17th 03 05:34 PM
DAO objects with late binding in Excel? Chris Excel Programming 0 August 21st 03 07:28 PM


All times are GMT +1. The time now is 08:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"