I need to set home pages (html pages) to outlook folders programatically using Visual Basic. Is it possible . If so give me link where I can get info abt it
Printable View
I need to set home pages (html pages) to outlook folders programatically using Visual Basic. Is it possible . If so give me link where I can get info abt it
Sure, here you go for Outlook 2003.
VB Code:
Option Explicit 'Add a reference to MS Outlook xx.0 Object Library 'After the homepage is set and set to view by default 'you must refresh the folder view by selecting another folder and then back. ;) 'Create a subfolder below your default Inbox called "Test1" Private Sub Command1_Click() Dim oApp As Outlook.Application Dim oFolder As Outlook.MAPIFolder Set oApp = New Outlook.Application Set oFolder = oApp.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Folders("VB Forums") oFolder.WebViewURL = "http://www.vbforums.com/showthread.php?t=379361" oFolder.WebViewOn = True Set oFolder = Nothing End Sub
Thanks Rob Dog .... [QUOTE]ur Great[QUOTE]
Your welcome.
Ps, dont forget to resolve your thread when its solved. ;)