Migrate from Outlook 2003 to 2007 - CreateObject("Outlook.Application")stopped working

  • Thread starter Nedim Azapagiæ
  • Start date Views 2,243
Status
Not open for further replies.
N

Nedim Azapagiæ

Hello,

I have Outlook-based application that uses combination of add-ins and

Public folder Homepage functionality.

It worked flawless for years in Outlook XP and 2003.

I am testing migration to Outlook 2007, and I have problem when

loading Public folder with "Homepage". I need to create object

Outlook.Application and I can't, even very simple code that works with

Outlook 2003 fails with Outlook 2007.

This is complete code of homepage, as you can see it is simple but it

still fails on line with "CreateObject" - only on Outlook 2007.

I will appreciate any help on this. Thanks.

<html
<script language="VBScript"
Option Explicit

Dim moa

Set moa = CreateObject("Outlook.Application")

</script
<body
Hello world!

<script language="VBScript"
Set moa = Nothing

</script
</body
</html
Nedim
 
N

Nedim Azapagiæ

I forgot to mention - error is:

ActiveX component can't create object: 'Outlook.Application'

Regards, Nedim


> <html
> <script language="VBScript"
> Option Explicit

> Dim moa
> Set moa = CreateObject("Outlook.Application")

> </script
> <body
> Hello world!

> <script language="VBScript"
> Set moa = Nothing
> </script
> </body
> </html
> Nedim
 
N

Nedim Azapagiæ

Hello,

has anybody run this short script as Folder Homepage in Outlook 2007,

does anybody have idea what could be the problem?

Regards, Nedim


> > <html
> > <script language="VBScript">

>
> > Option Explicit

>
> > Dim moa
> > Set moa = CreateObject("Outlook.Application")

>
> > </script
> > <body
> > Hello world!

>
> > <script language="VBScript"
> > Set moa = Nothing
> > </script>

>
> > </body
> > </html>
 
N

Nedim Azapagić

This is stil issue, so if anyone knows what could be solution (some

registry setting perhaps?)

Thank you,

Nedim

On Jun 16, 10:58 am, Nedim Azapagić <nedim.azapa...@gmail.com> wrote:
> Hello,

> has anybody run this short script as Folder Homepage in Outlook 2007,
> does anybody have idea what could be the problem?

> Regards, Nedim
>
> > > <html
> > > <script language="VBScript">

>
> > > Option Explicit

>
> > > Dim moa
> > > Set moa = CreateObject("Outlook.Application")

>
> > > </script
> > > <body
> > > Hello world!

>
> > > <script language="VBScript"
> > > Set moa = Nothing
> > > </script>

>
> > > </body
> > > </html>
 
Status
Not open for further replies.

Top