Beta Notice: We've just completed a major update to our content management system. While we hope you don't encounter any errors, new software could cause new errors. If you encounter an error (or see anything in the body of an article in the form "ERROR:xxx"), please contact the editors. If possible, please include details and a screen shot. Thanks!
 Email:   
Home
In This Issue
EasyPrint
Click here for the RSS feed's XML code. This is not a browser URL.
Automatic, updating email signatures (continued)

It doesn't get much easier than that. Here's an example of what the code might look like.

Disclaimer: A trained professional did NOT write this code. By all means, attempt this at home.

RTFPath = SIGPath & "Temperature.rtf"

If CurrentTemp <> "N/A" Then
fPos = InStr(CurrentTemp, "F")
If fPos <> 0 Then
TempOnly = Mid(CurrentTemp, 1, fPos - 3)
fPos = InStr(CurrentChill, "F")
If fPos <> 0 Then
ChillOnly = Mid(CurrentChill, 1, fPos - 3)
'''''''''''''''''''''''''''''''''''''
' Do RTF signature
'''''''''''''''''''''''''''''''''''''
Temp2 = "\viewkind4\uc1\pard\qc\i\fs20 "
Temp2 = Temp2 & "Temperature " & TempOnly & "\'b0 F, Feels Like "
Temp2 = Temp2 & ChillOnly & "\'b0 F\par"
RTFStrings(2) = Temp2

Open RTFPath For Output As #intFNum

For X = 1 To 4
Print #intFNum, RTFStrings(X)
Next X
Close #intFNum
End If
End If
End If

For the people who want to know how much daylight I'm getting, I threw together a .csv file that contains sunrise/sunset data. Another little Visual Basic program reads the data for the current day and updates the Outlook signature used for new email messages. I run this as a Scheduled Task, as it only needs to be done once a day. On a new email, the recipient will see something like below.

Sunrise/Sunset data for: 09/16/2004 Sunrise: 7:30AM, Sunset: 8:16PM Total daylight: 12 hours, 46 minutes Records for this date: High 70 (1919), Low 26 (1935)

If you're reading this and say to yourself, "I wanna do what he did!" you can save yourself a lot of headaches, not to mention money, if you get your neighbor to invest in an online weather station instead of trying to do it yourself. In my particular case, the weather station already existed -- I just took advantage of it.

In all fairness to my neighbor, he's spent considerable money in keeping his weather station upgraded and operational, and for that I'm eternally grateful. Especially the times when they changed the wind chill formula (requiring an upgrade), or when I complained that his wind gauge froze up and asked if he could upgrade to a heated one. If you're successful in getting your neighbor to install an online weather station, three words of advice: BE ETERNALLY GRATEFUL!

The third question I alluded to earlier is this, and I swear I'm not making this up!

"I read once that a bald eagle snatched up a five year old girl and flew away with her. Does that happen in Alaska?"

Not wishing to let someone this gullible off so easily I replied, "Yes. It happens all the time. Five year old girls are very scarce in Alaska because bald eagles patrol the neighborhoods and hang out at gymnastic clubs and ice skating rinks, places where five year old girls are known to go."




[ Prev | Next ]

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
-- Advertisement --

EASY DEDICATED AND VIRTUAL DEDICATED SERVERS FOR AS LOW AS $67.99 PER MONTH
Customize and configure your own dedicated server. Simply choose one of our popular plans or select your own Linux or Windows server and plan options.

NO LONG WAITS. Server provisioned within hours.

Tap here now and be up and running with your own server tonight.

-- Advertisement --

BECOME CONFIDENT AND PRODUCTIVE WITH OUTLOOK 2007 IN SIX WEEKS
You can become a confident, productive user of Outlook 2007 in six weeks.

The Introduction to Outlook 2007 online course makes it happen in just twelve short lessons. The course features an instructor-led online discussion forum, regular assignments and quizzes, printable class notes, and a certificate of completion.

Learn more, then register today, at http://www.ed2go.com/courses/io7.
The Power Magazine for Microsoft Outlook and Exchange Users at OutlookPower.com
Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.
Outlook is a trademark of Microsoft Corporation.