?
Solved

Rotating signature

Posted on 2006-10-31
11
Medium Priority
?
626 Views
Last Modified: 2011-04-14
I know it'd involve a bit of coding, but I would presume it's possible...
I'm running OL2k3 - and I'm curious if I have an external file, sigs.txt, that contains tag lines (famous quotations), if I could have some code that would rotate through these on a weekly basis.

So that this week it might be a quote from Emerson, next week, Stevenson, etc...

Possible?
0
Comment
Question by:sirbounty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
  • 2
11 Comments
 
LVL 19

Expert Comment

by:Serena Hsi
ID: 17843537
A somewhat automated method would be to use Word as the editor in Outlook, and setup each quote as its own AutoText entry (in Word), then ask someone in the Word forum (http://www.experts-exchange.com/Applications/MS_Office/Word/) to write a macro that selects and auto-text entry based on a particular weekday or something for insertion into a new mail message.
0
 
LVL 19

Assisted Solution

by:Serena Hsi
Serena Hsi earned 600 total points
ID: 17843546
For starters you could look at this sample code:

A simple way to add a signature to a MailItem using VBA code in an Outlook Event or Form
http://www.outlookcode.com/codedetail.aspx?id=719

0
 
LVL 76

Accepted Solution

by:
David Lee earned 1400 total points
ID: 17845250
Hi sirbounty,

Here's a link to a very similar question I answered a few months ago.  It would be very easy to modify this to read the quotes in from a file.

http://www.experts-exchange.com/Applications/MS_Office/Outlook/Q_21837844.html


Cheers!
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 67

Author Comment

by:sirbounty
ID: 17848678
Very nice BDF!

Hmm - the only thing that I see might be different for me is, I've been placing my quotes in a tabbed-block format.

"Blah blah blah
  blah blah blah blah
    blah blah blah" - Sir Isaac Blah blah

I think I can get by this with your code, by placing hard crlfs where I need them, inside the array...testing that theory now...
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17848798
Okay, I think that'll work...but here's another question for you BDF:
I send mail from several mailboxes - I'd only want these added to my personal mailbox...anyway of ensuring that?
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17848953
weird - it ran, but it hung Word.  Any idea why?
When I killed Word, it used Outlook editor and added the quote.
I'd like to have it appear in a smaller font, and navy, if that's doable?
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17848974
Hmm - and the vbcrlf added to the end of the lines seems to be ignored... : \

It's also placing extra spaces in my signature...
0
 
LVL 76

Expert Comment

by:David Lee
ID: 17854935
> the vbcrlf added to the end of the lines seems to be ignored
HTML formatting ignores vbcrlf.  Try using the HTML line-break tag <br>

> weird - it ran, but it hung Word.  Any idea why?
Unfortunately, no.  I don't use Word with Outlook at all.  Way too many problems.

> I'd like to have it appear in a smaller font, and navy, if that's doable?
Yeah, that's doable.  What font and font size would you like?

>  I send mail from several mailboxes - I'd only want these added to my personal mailbox...anyway of ensuring that?
Hmm.  Let me think about that.
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17880185
"What font and font size would you like?"

I'm using a 7.5 "Estrangelo Edessa" font.
0
 
LVL 76

Expert Comment

by:David Lee
ID: 17887660
>  I send mail from several mailboxes - I'd only want these added to my personal mailbox...anyway of ensuring that?
There are a couple of ways I think we can do this.  The simplest way is to wait until you've actually clicked the Send button, triggering the ItemSend event, and add the signature at that point.  The code for that is relatively simple and straightforward.  The only real down side is that you won't be able to see the quote until you look at it in Sent Items.  The alternative is to trap a certain toolbar button click, i.e. the one used to select an account, and insert the signature if that account is selected.  The problem there is that changing selections once the quote has been added won't remove the quote and could cause a message to end up with multiple quotes.  Those represent the automatic ways.  There are a couple of other options that aren't automatic.  For example, a button that inserts a quote on demand or a button that creates a message with a quote.
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17913856
Hmm - I think I'd rather see the quote before it's sent...
Normally when sending a note, I just simply change the From line to read the group mailbox that I send from - I don't use a toolbar button.  And the manual insertion doesn't sound pleasant, so perhaps this is a dead-end?
I can continue to just change it myself every few weeks - obviously this isn't an impact to my production (lol).
Thanx anyway...
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
Mailbox Overload?
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question