Hi all -
I would like to return the highest level folder in an Outlook folder path. I can get the parent, but the parent might not be the highest level. I can keep asking for the parent of the parent, but I get an error once I get to the top level.
Alternatively, how do I get the folder...
Hi -
I figured it out. I still have some problems getting the right signature to go "when" I want it, though. The code works fine for new e-mails, but the default signature is added to replies. I will need to write code that detects a reply. I think I can figure it out.
I did have two...
Thanx, no! Seems to be working. However, it works too well. :( I want to add the signature to the bottom of an e-mail, not replace the body of the e-mail with the signature. Right now, if I REPLY to an e-mail, the original e-mail is "replaced" by the signature. I'm sure this is because of...
Fixed it:
' First, check to see if the current item is an email and that it has not been sent.
If TypeName(m_Inspector.CurrentItem) = "AppointmentItem" = False Then
If TypeName(m_Inspector.CurrentItem) = "MailItem" _
And m_Inspector.CurrentItem.Sent = False Then
The new line after the comment...
All -
I have encountered a problem. The code throws an error 438 (Object does not support property or method) when I open a calendar item. The offending code is:
If TypeName(m_Inspector.CurrentItem) = "MailItem" And m_Inspector.CurrentItem.Sent = False Then
I thought this checked to see if...
Hi all -
I finally figured out the code to do what I need. This checks to see if the folder is called "GCU" or if it is a subfolder of "GCU." If so, it chooses a specific account to send the e-mail and uses a GCU signature instead of the default:
Private Sub m_Inspector_Activate()
' First...
So...
I am trying to choose a sendmail account and then use the correct signature for that account. Here's what I have so far:
---------------------------------------------------------
Private Sub m_Inspector_Activate()
If TypeName(m_Inspector.CurrentItem) = "MailItem" And...
Hi!
I am using a procedure to choose the correct account for sending a new e-mail that I adapted from this forum. The correct account is based on the Outlook folder I am in. Thanx! I can successfully choose the correct account, but the signature for the correct account does not show...
Hi all -
I want to automatically choose a specific e-mail account when opening a new (blank) e-mail message from a specific folder. I have tried everything, but I cannot get my code to "fire" each time a new e-mail message is opened. I understand how to find the current folder, and I...
Hi!
I figured out everything but how to use a specific signature. Here's the "final" code.
Private Sub Application_Startup()
Set m_Inspectors = Application.Inspectors
End Sub
---------------------------------------------------
Private Sub m_Inspectors_NewInspector(ByVal Inspector As...
Thanx, Diane. This works almost perfectly with my IMAP accounts!!
I say "almost" because of one thing. Although this successfully changes the "send from" e-mail account, Outlook does not grab the signature used with that account. How can I get that?
Thanx again!
hb
Hi all!
I want to automatically select a specific mail account to send e-mails when I am in a specific folder. I understand how to test for the current folder, and I understand how to use VBA to create a new e-mail and send it from a specific account.
However, I want all e-mails sent when I...