PC Review


Reply
Thread Tools Rate Thread

Create Calendar event with late binding VBA

 
 
Randy Harris
Guest
Posts: n/a
 
      7th Sep 2005
I would like to be able to create an event in Outlook Calendar from VBA in
Access using late binding.

Can someone point me to sample code somewhere that would help me get
started?

Thanks for any suggestions.

 
Reply With Quote
 
 
 
 
Michael Bauer
Guest
Posts: n/a
 
      7th Sep 2005
Am Tue, 6 Sep 2005 23:36:28 -0400 schrieb Randy Harris:



> I would like to be able to create an event in Outlook Calendar from VBA in
> Access using late binding.
>
> Can someone point me to sample code somewhere that would help me get
> started?
>
> Thanks for any suggestions.


Late binding means that all objects are declared as Object. E.g. instead of
Dim oTask As Outlook.TaskItem
you need to write
Dim oTask As Object

IŽd suggest that you add a reference on Outlook to your Access project. Then
you can use the Object Browser, it helps you finding functions, the help for
them, samples etc. E.g., youŽre looking for the CreateItem function.

In the end you can remove that reference.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
 
Reply With Quote
 
Randy Harris
Guest
Posts: n/a
 
      8th Sep 2005

"Michael Bauer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Am Tue, 6 Sep 2005 23:36:28 -0400 schrieb Randy Harris:
>
>
>
> > I would like to be able to create an event in Outlook Calendar from VBA

in
> > Access using late binding.
> >
> > Can someone point me to sample code somewhere that would help me get
> > started?
> >
> > Thanks for any suggestions.

>
> Late binding means that all objects are declared as Object. E.g. instead

of
> Dim oTask As Outlook.TaskItem
> you need to write
> Dim oTask As Object
>
> IŽd suggest that you add a reference on Outlook to your Access project.

Then
> you can use the Object Browser, it helps you finding functions, the help

for
> them, samples etc. E.g., youŽre looking for the CreateItem function.
>
> In the end you can remove that reference.
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook


I did as you suggested, set the reference, then got the code working. I was
subsequently able to change it to late binding. Thank you for the help.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create COM component via late binding jwang Microsoft C# .NET 7 6th Aug 2006 03:58 AM
Event Handling in VB.Net + Late Binding Elankathir S.N. Microsoft VB .NET 1 27th Jul 2006 12:20 PM
Event Handling in VB.Net + Object Late Binding Elan Microsoft ASP .NET 0 27th Jul 2006 08:33 AM
Create Class Module using late binding =?Utf-8?B?TWFyaWFubyBCLg==?= Microsoft Excel Programming 3 14th Mar 2006 07:21 PM
Can I create windows form by using late binding? Steven Microsoft VB .NET 4 8th Feb 2006 07:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:33 AM.