news:262b8708-0fc2-4279...@googlegroups.com...
> And this would be the bit where I sit there with a blank der-expression.
>
> Never been any good at constructing Global Functions, nor any clue
> regarding early / late bindings.
early / late binding has to do with how you declared the Outlook objects.
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment
To do this you must have set a reference to the Outlook library. If you
notice, that reference is to a specific version of outlook (in my case
"Microsoft Outlook 14.0 Object Library" which is office 2010). Someone with
a different version attempting to open your application will get a reference
error and the application will close. Removing the reference to Outlook
will allow anyone using any version of Outlook, or even without Outlook to
use your application. The problem for you is that you cannot declare your
Outlook objects as above.
Dim objOutlook As Object
Dim objOutlookMsg As Object
Dim objOutlookRecip As Object
Dim objOutlookAttach As Object
Above is late binding declaration, you lose intelligence making programming
harder. Also any Outlook constants will needed to be replaced. The rest of
the code remains unchanged. When programming, I will use early binding then
switch to late before final testing and release. I also declare all the
constants I use at the top of the module. You can get the value of each
constant from the object browser while Outlook is referenced.
>
> As for the form loading, you're most likely correct, especially once I
> throw this on the dinosaur treadmill that is our server it will probably
> have a hissy-fit and lock up on me.
>
> But! this is all theory and playtime for me to try and convince Noah, that
> the ark can be built to store more animals in a smaller space and reduce
> the squillions of Excel workbooks into one central container.
>
> Currently, just at my end of the process I generate a 5meg workbook each
> day that has to be kept, so multiply that by the 4 years I have been doing
> this and it's getting fat, then there's the other processed workbooks that
> take up to 2 - 3 meg each and the Michellen Man is looking anorexic by
> comparison.. :)
>
> It will be up to the demi-gods to determine if they want to spend the
> green on a high-end professional programmer to do it properly, I just need
> to light a fire under their asses to motivate them..
You could keep the early binding; forcing all users to upgrade office to
match you version will may motivate them;)
>
> Thanks heaps again.
> Mick.
>