WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Cancelling ItemSend event removes signature tag?

 
Goto page Previous  1, 2
   Home -> Office -> Programming VBA RSS
Next:  Trapping RDO (Redemption) Events in Delphi  
Author Message
Josh

External


Since: Apr 19, 2006
Posts: 80



(Msg. 9) Posted: Tue Oct 28, 2008 10:51 am
Post subject: Re: Cancelling ItemSend event removes signature tag? [Login to view extended thread Info.]
Archived from groups: microsoft>public>outlook>program_vba (more info?)

OK, I suppose I could setup all my signatures to have some special character
combination at the start and end so I can remove the old signature and
replace with the new. So the question becomes, how do I write this function:

Private Function GetNewMessageSignatureFromAccount(inSendUsingAccount) as
string

'Take in an account and retrieve the signature to use for new messages

End Sub

"Ken Slovak - [MVP - Outlook]" wrote:

> That's the correct location. For multiple open Inspectors or items you can
> use a collection to hold them and a unique Key value for each one. I usually
> use a special wrapper class that declares any item or Inspector objects I'll
> need along with the event handlers for the specific item. Then each item's
> events fire only in that class. The collection keeps the class alive until
> it's no longer needed, you just remove it from the collection when the item
> or Inspector is closed.
>
> As I mentioned, that might not work since the signature stuff is only done
> by Outlook when a new item is opened/replied to/forwarded. For anything else
> it becomes a matter of finding the existing signature and replacing it
> yourself with the desired one using string functions.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "Josh" <Josh RemoveThis @discussions.microsoft.com> wrote in message
> news:67E08B7E-BBB3-4D05-B7FF-D5CD6E73B1DD@microsoft.com...
> > Ken, thanks for the reply. I did as you said, and it is capturing the
> > objMail_Send event prior to Application_ItemSend. However, it is still
> > experiencing the same problem with the signature not updating/not being
> > updateable.
> >
> > Also, I have in ThisOutlookSession:
> > Public WithEvents objMail As MailItem
> > Private Sub Application_ItemLoad(ByVal Item As Object)
> > If TypeOf Item Is Outlook.MailItem Then
> > Set objMail = Item
> > End If
> > End Sub
> >
> > Is this the correct place to put this code? How do I handle if multiple
> > message are opened at once? Seems like it could get a handle to the wrong
> > item when sending.
> >
> > -Josh
>
>
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2898



(Msg. 10) Posted: Tue Oct 28, 2008 11:55 am
Post subject: Re: Cancelling ItemSend event removes signature tag? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Rhetorical question?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Josh" <Josh.TakeThisOut@discussions.microsoft.com> wrote in message
news:796430F3-FA46-41EA-B682-DB7C91B59EAD@microsoft.com...
> OK, I suppose I could setup all my signatures to have some special
> character
> combination at the start and end so I can remove the old signature and
> replace with the new. So the question becomes, how do I write this
> function:
>
> Private Function GetNewMessageSignatureFromAccount(inSendUsingAccount) as
> string
>
> 'Take in an account and retrieve the signature to use for new messages
>
> End Sub
Back to top
Login to vote
Josh

External


Since: Apr 19, 2006
Posts: 80



(Msg. 11) Posted: Tue Oct 28, 2008 11:55 am
Post subject: Re: Cancelling ItemSend event removes signature tag? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ha, I didn't intend for it to be. How do I get the new message signature text
stored in outlook associated with a given account?

"Ken Slovak - [MVP - Outlook]" wrote:

> Rhetorical question?
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "Josh" <Josh RemoveThis @discussions.microsoft.com> wrote in message
> news:796430F3-FA46-41EA-B682-DB7C91B59EAD@microsoft.com...
> > OK, I suppose I could setup all my signatures to have some special
> > character
> > combination at the start and end so I can remove the old signature and
> > replace with the new. So the question becomes, how do I write this
> > function:
> >
> > Private Function GetNewMessageSignatureFromAccount(inSendUsingAccount) as
> > string
> >
> > 'Take in an account and retrieve the signature to use for new messages
> >
> > End Sub
>
>
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2898



(Msg. 12) Posted: Tue Oct 28, 2008 2:58 pm
Post subject: Re: Cancelling ItemSend event removes signature tag? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

That's in an undocumented section of the registry under the email accounts.
How you'd parse that out I have no idea.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Josh" <Josh.TakeThisOut@discussions.microsoft.com> wrote in message
news:EBF136A0-9CAD-4ED4-9494-C5D6AC060D9A@microsoft.com...
> Ha, I didn't intend for it to be. How do I get the new message signature
> text
> stored in outlook associated with a given account?
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET