PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming how to delete forwarding with vba script

Reply

how to delete forwarding with vba script

 
Thread Tools Rate Thread
Old 04-11-2004, 11:58 AM   #1
Martin Lause
Guest
 
Posts: n/a
Default how to delete forwarding with vba script


Hello,

i have made a routine to set forwarding adress by script.
This is no Problem for me, but how can i delete the forwarding
is there a other attribut to set, because setting the attribut altRecipient
to nothing don´t
delete the forwarding.


set forwarding:

While Not RS.EOF
Set objUser = GetObject(RS.Fields("adspath"))
Dim Namew As String
Namew = RS2.Fields("adspath")
Namew = Replace(Namew, "Ldap://", "")
objUser.altRecipient = Namew
If copy = 0 Then
objUser.deliverAndRedirect = False
Else
objUser.deliverAndRedirect = True
End If
objUser.SetInfo

RS.MoveNext

delete forwarding: ??????????????????????????



  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off