(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
>
>
(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?)
"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
(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
>
>
"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?
All times are: Eastern Time (US & Canada) (change) Goto page Previous1, 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