exception when I call ActiveDocument.Range(0,0).Editors.Add(-1)

Status
Not open for further replies.
T

Tom

When I browse to an email, the plug in will search the email text. If find

URL inside the email I will insert some string into the email based on if the

URL is safe or not.

It works fine on Outlook 2007. However in Outlook 2010 beta when I call:

ActiveDocument.Range(0,0).Editors.Add(-1) // where -1 stands for everyone

It raise exception.

BTW, I've tried different integers as parameter to Editers.Add() method. And

I also use email address, email alias string as parameters. All raise

exceptions.

Any suggestion?

Thanks in advance.

Tom
 
And what does the message of the exception tell you?

Best regards

Michael Bauer

Am Wed, 9 Dec 2009 11:02:01 -0800 schrieb Tom:


> When I browse to an email, the plug in will search the email text. If find
> URL inside the email I will insert some string into the email based on if


the
> URL is safe or not.

> It works fine on Outlook 2007. However in Outlook 2010 beta when I call:
> ActiveDocument.Range(0,0).Editors.Add(-1) // where -1 stands for everyone
> It raise exception.

> BTW, I've tried different integers as parameter to Editers.Add() method.


And
> I also use email address, email alias string as parameters. All raise
> exceptions.

> Any suggestion?

> Thanks in advance.

> Tom
 
Re: exception when I call ActiveDocument.Range(0,0).Editors.Add(-1

The exception is "[object Error]".

"Michael Bauer " wrote:



> And what does the message of the exception tell you?

> > Best regards
> Michael Bauer

> > >

> Am Wed, 9 Dec 2009 11:02:01 -0800 schrieb Tom:
>
> > When I browse to an email, the plug in will search the email text. If find
> > URL inside the email I will insert some string into the email based on if

> the
> > URL is safe or not.
> > It works fine on Outlook 2007. However in Outlook 2010 beta when I call:
> > ActiveDocument.Range(0,0).Editors.Add(-1) // where -1 stands for everyone
> > It raise exception.
> > BTW, I've tried different integers as parameter to Editers.Add() method.

> And
> > I also use email address, email alias string as parameters. All raise
> > exceptions.
> > Any suggestion?
> > Thanks in advance.
> > Tom

> .
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
C Problem accessing events for folder "username" Server Threw Exception Using Outlook 1
A Exception message: MapiExceptionLogonFailed: Unable to open message store Exchange Server Administration 1
A Unhandled exception: picture argument should be an image BCM (Business Contact Manager) 0
N _MailItem->GetSendOn(&date) throws an exception Outlook VBA and Custom Forms 1
M Exception from HRESULT: 0x8007000E (E_OUTOFMEMORY) Outlook VBA and Custom Forms 3
N Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)) Outlook VBA and Custom Forms 1
L Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)) Outlook VBA and Custom Forms 1
R vba rule exception "except with specific words in the sender's add Outlook VBA and Custom Forms 2
C IMapiSession exception: Specified cast is not valid Outlook VBA and Custom Forms 1
S Security exception while opening custom outlook form Outlook VBA and Custom Forms 1
P Comcast IMAP broken but their second level support said to call "the Outlook company" Using Outlook 4
R Call a Public Sub when a Flag is clicked on in the Message Preview pane Outlook VBA and Custom Forms 1
CWM030 Call me old if you want. OL 2016 font size out of the box. Using Outlook 3
F Outlook 2016 call to Stop Timer Event Outlook VBA and Custom Forms 4
C Unchecking "Send immediately when connected" does not work on apps that call Outlook Using Outlook 1
M How to call custom email form when sender = x Using Outlook 3
D Create additional custom flag descriptions (other than Send E-Mail, Call etc.) Using Outlook 1
K call a help file when click on a button xml ribbon Outlook VBA and Custom Forms 1
C OL Sub through or by Excel Macro Call Outlook VBA and Custom Forms 1
S How to call a procedure from a custom command bar in Outlook 2007 Outlook VBA and Custom Forms 1
R Phone Call Start Date - Phone Log BCM (Business Contact Manager) 1
B Good Call Log Concept? Outlook VBA and Custom Forms 5
J Outlook custom form - VBS call VBA macro Outlook VBA and Custom Forms 3
D Call add-in method from macro? Outlook VBA and Custom Forms 1
M Phone Log Reminder to call back BCM (Business Contact Manager) 1
R Help, Outlook2003 won't quit after call OnDisconnection? Outlook VBA and Custom Forms 3
S Custom VBA forms in Outlook--how to call w/macro? Outlook VBA and Custom Forms 1
C How do you call a exe and interact with the output interactively Outlook VBA and Custom Forms 2

Similar threads

Back
Top