villy
Active Member
- Joined
- May 15, 2011
- Messages
- 489
To all gurus,
Please tell me why I am having error in red highlighted saying runtime erro 429 - ActiveX components can't create object.
I just copied the code from one site:
I know there will be someone out there got an idea.
What I wanted to do is to link a spreadsheet into Outlook calendar.
But trying the above code gives me an error.
Anyone?
Please tell me why I am having error in red highlighted saying runtime erro 429 - ActiveX components can't create object.
I just copied the code from one site:
Rich (BB code):
Sub AddToOutlook()
Dim o As Outlook.Application
Dim ai As Outlook.AppointmentItem
Set o = GetObject(, "Outlook.application")
Set ai = o.CreateItem(olAppointmentItem)
ai.Body = "Do abc"
ai.Subject = "Things to do"
ai.Start = "05/19/05 04:00:00 PM"
ai.Duration = 30
ai.Close olSave
End Sub
I know there will be someone out there got an idea.
What I wanted to do is to link a spreadsheet into Outlook calendar.
But trying the above code gives me an error.
Anyone?