Outlook 2003/2007 differences

P

Pierre Scerri

This code:

Set Iexplr = New InternetExplorer
With Iexplr
.Visible = False
.Navigate URL:="http://xyz.com/"
Do While .Busy: Loop
...some more code...
End With

works in Outlook 2003 (with Windows XP) but not in Outlook 2007 (with
Windows Vista).

In 2003 it opens an invisible instance of Internet Explorer and goes to the
website xyz.com as expected. Code execution continues normally.

In 2007 the .navigate command opens a 'visible' instance of Internet
Explorer and goes to the website xyz.com. However, the variable Iexplr
becomes null and any subsequent use (.busy) results in runtime error 462: The
remote server machine does not exist or is unavailable.

Can the code be made to work with both configurations?

Thanks
 
G

Guest

I myself don't have an answer, but this thread sounds relevant:

scripting Visual Basicscript Bring new "InternetExplorer.Application" to the
front...:
http://www.eggheadcafe.com/software/aspnet/30054809/bring-new-internetexplor.aspx

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
-> Try Picture Attachments Wizard For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault
 
P

Pierre Scerri

Thanks for replying. I followed the lnk you provided but i cannot see how it
can help me. The other person's problem seems to be the opposite of mine, ie
Internet explorer is not showing when it should.

Maybe this problem has something to do with the ieuser.exe that runs when
Internet Explorer is launched in Windows Vista??

The major problem is that the instance of Internet Explorer is lost once the
..navigate command is exxecuted and no further processing is possible.

I myself don't have an answer, but this thread sounds relevant:

scripting Visual Basicscript Bring new "InternetExplorer.Application" to the
front...:
http://www.eggheadcafe.com/software/aspnet/30054809/bring-new-internetexplor.aspx

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
-> Try Picture Attachments Wizard For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


Pierre Scerri said:
This code:

Set Iexplr = New InternetExplorer
With Iexplr
.Visible = False
.Navigate URL:="http://xyz.com/"
Do While .Busy: Loop
...some more code...
End With

works in Outlook 2003 (with Windows XP) but not in Outlook 2007 (with
Windows Vista).

In 2003 it opens an invisible instance of Internet Explorer and goes to
the
website xyz.com as expected. Code execution continues normally.

In 2007 the .navigate command opens a 'visible' instance of Internet
Explorer and goes to the website xyz.com. However, the variable Iexplr
becomes null and any subsequent use (.busy) results in runtime error 462:
The
remote server machine does not exist or is unavailable.

Can the code be made to work with both configurations?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top