>Hi Everyone, > >Anybody know how to change the Outlook folder view to something else? > >Basically, what I wanted to do is that if there is currently running Outlook, in my VFP program, I will change the current folder view to Task List or to Calendar.
Try
oOL = GETOBJECT("", "Outlook.Application")
oNS = oOL.GetNamespace("MAPI")
* Get ACtive Explorer object
oAX = oOl.ActiveExplorer
* Change current folder to Calendar
oCF = oNS.GetDefaultFolder(10) && Calendar
oAx.CurrentFolder = oCF
oAx.Activate()