Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Sub TasksToHTML()
Dim objOutlook As New Outlook.Application
Dim FolderItems As Object
Dim FolderItem As Object
Dim intFileNumber As Integer
Set FolderItems = objOutlook.Session.Folders("Personal Folders").Folders("Tasks")
intFileNumber = FreeFile()
Open "C:\Tasks.htm" For Output As intFileNumber
'Write the minimum HTML header
Print #intFileNumber, "<HTML><BODY>"
'Write the Table header
Print #intFileNumber, "<TABLE>"
For Each FolderItem In FolderItems.Items
'Write the Subject and Due Date from the current task to the file
Print #intFileNumber, "<TR><TD>" & FolderItem.Subject & "</TD><TD>" & _
Format(FolderItem.DueDate, "mm/dd/yy") & "</TD></TR>"
Next FolderItem
'Write the Table footer
Print #intFileNumber, "</TABLE>"
'Write the minimum HTML footer
Print #intFileNumber, "</BODY></HTML>"
Close #intFileNumber
Set FolderItem = Nothing
Set FolderItems = Nothing
Set objOutlook = Nothing
End Sub