I found a script (I THINK that it's a Visual Basic Script, not sure) on an Outlook forum, which Diane Poremsky is on, and I was wondering how I can use/run it in Outlook 2013. What should be the ending of the script? Here is one of the smaller scripts:
Can anyone tell me if this saves all my new e-mails as text or just the ones I want?
Secondly, I've been noticing that I've been receiving a lot of errors in my send/receive dialog box (with RSS feeds only). Here is just one sample of the error:
I know that it's not connecting to the server, but why is this occurring, and how can I, if possible, correct this?
Lastly, this is a double loaded question. I have downloaded holidays from 2013-2022, how can I incorporate them into my Calendar in Outlook 2013, and do I need to call this file any special file, or can it just be a text file. Here is just a very small sample of the holiday list:
Now the other part. I have a list of appointments for Physical Therapy for three days a week for the next three months. Can anyone tell me what type of format does this file have to be in and how should it be set up? For example,
Thursday, June 6 2013 10:00 AM Physical Therapy with NovaCare (Theresa - Therapist)
Friday, June 7, 2013 11:00 AM Physical Therapy with NovaCare (Jeffery - Therapist)
Tuesday, June 11, 2013 11:00 AM Physical Therapy with NovaCare (Theresa - Therapist)
etc., etc., and so on.
Can I set up a text file, or what ever, and have them imported into Outlook's Calendar like the holidays?
I would really appreciate any and all assistance with these matters.
Thank You.
PHP:
Option Explicit
Public Enum olSaveAsTypeEnum
olSaveAsTxt = 0
olSaveAsRTF = 1
olSaveAsMsg = 3
End Enum
Private WithEvents Items As Outlook.Items
Private Const MAIL_PATH As String = "d:\e-mails\"
Private Sub Application_Startup()
Dim Ns As Outlook.NameSpace
Set Ns = Application.GetNamespace("MAPI")
Set Items = Ns.GetDefaultFolder(olFolderInbox).Items
End Sub
Private Sub Items_ItemAdd(ByVal Item As Object)
If TypeOf Item Is Outlook.MailItem Then
SaveMailAsFile Item, olSaveAsMsg, MAIL_PATH
End If
End Sub
Private Sub SaveMailAsFile(oMail As Outlook.MailItem, _
eType As olSaveAsTypeEnum, _
sPath As String _
)
Dim dtDate As Date
Dim sName As String
Dim sFile As String
Dim sExt As String
Select Case eType
Case olSaveAsTxt: sExt = ".txt"
Case olSaveAsMsg: sExt = ".msg"
Case olSaveAsRTF: sExt = ".rtf"
Case Else: Exit Sub
End Select
sName = oMail.Subject
ReplaceCharsForFileName sName, "_"
dtDate = oMail.ReceivedTime
sName = Format(dtDate, "yyyymmdd", vbUseSystemDayOfWeek, _
vbUseSystem) & Format(dtDate, "-hhnnss", _
vbUseSystemDayOfWeek, vbUseSystem) & "-" & sName & sExt
oMail.SaveAs sPath & sName, eType
End Sub
Private Sub ReplaceCharsForFileName(sName As String, _
sChr As String _
)
sName = Replace(sName, "/", sChr)
sName = Replace(sName, "\", sChr)
sName = Replace(sName, ":", sChr)
sName = Replace(sName, "?", sChr)
sName = Replace(sName, Chr(34), sChr)
sName = Replace(sName, "<", sChr)
sName = Replace(sName, ">", sChr)
sName = Replace(sName, "|", sChr)
End Sub
Can anyone tell me if this saves all my new e-mails as text or just the ones I want?
Secondly, I've been noticing that I've been receiving a lot of errors in my send/receive dialog box (with RSS feeds only). Here is just one sample of the error:
Code:
[INDENT]Task 'RSS Feeds' reported error (0x800C0006) : 'Synchronization to RSS Feed:"http://www.linkedin.com/rss/questions?cat=PRO_CMA" has failed.
Outlook cannot download the RSS content from http://www.linkedin.com/rss/questions?cat=PRO_CMA because of a problem connecting to the server.'[/INDENT]
I know that it's not connecting to the server, but why is this occurring, and how can I, if possible, correct this?
Lastly, this is a double loaded question. I have downloaded holidays from 2013-2022, how can I incorporate them into my Calendar in Outlook 2013, and do I need to call this file any special file, or can it just be a text file. Here is just a very small sample of the holiday list:
Code:
[United States] 264
Christmas Day,2012/12/25
Christmas Day,2013/12/25
Christmas Day,2014/12/25
Christmas Day,2015/12/25
Christmas Day,2016/12/25
Christmas Day,2017/12/25
Christmas Day,2018/12/25
Christmas Day,2019/12/25
Christmas Day,2020/12/25
Christmas Day,2021/12/25
Christmas Day,2022/12/25
Now the other part. I have a list of appointments for Physical Therapy for three days a week for the next three months. Can anyone tell me what type of format does this file have to be in and how should it be set up? For example,
Thursday, June 6 2013 10:00 AM Physical Therapy with NovaCare (Theresa - Therapist)
Friday, June 7, 2013 11:00 AM Physical Therapy with NovaCare (Jeffery - Therapist)
Tuesday, June 11, 2013 11:00 AM Physical Therapy with NovaCare (Theresa - Therapist)
etc., etc., and so on.
Can I set up a text file, or what ever, and have them imported into Outlook's Calendar like the holidays?
I would really appreciate any and all assistance with these matters.
Thank You.