Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I know it is possible to export information from Excel into the Outloo default calendar. Is it possible to export information to subfolder under Outlook calendar? If so, how would I go about doing that usin code from within Excel? Thank you very much -- littlegreenmen ----------------------------------------------------------------------- littlegreenmen1's Profile: http://www.excelforum.com/member.php...fo&userid=2397 View this thread: http://www.excelforum.com/showthread.php?threadid=38526 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This is my code so far: Sub Outlook_Calendar_Subfolder() Dim olApp As Object Dim olApt As Object Dim olSubject As Range Dim olBody As Range Dim olDate As Range Dim olLocation As Range Set olSubject = Sheet1.Cells.Item(1, "A") Set olBody = Sheet1.Cells.Item(1, "B") Set olDate = Sheet1.Cells.Item(1, "C") Set olLocation = Sheet1.Cells.Item(1, "D") Set olApp = CreateObject("Outlook.Application") Set olApt = olApp.CreateItem(1) Set myNameSpace = olApp.GetNameSpace("MAPI") Set myfolder = myNameSpace.GetDefaultFolder(9) Set mynewfolder = myfolder.Folders("123 Anywhere St.") With olApt ..AllDayEvent = True ..Start = olDate ..Subject = olSubject ..Location = olLocation ..Body = olBody ..BusyStatus = 0 ..ReminderSet = False ..Save End With Set olApp = Nothing Set olApt = Nothing End Sub As of now it still simply copies the information to the default folder. How do i get it to copy the information into the referenced subfolder? -- littlegreenmen1 ------------------------------------------------------------------------ littlegreenmen1's Profile: http://www.excelforum.com/member.php...o&userid=23978 View this thread: http://www.excelforum.com/showthread...hreadid=385266 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
exporting outlook calendar to excel | Excel Discussion (Misc queries) | |||
how do i export excel calendar info to outlook calendar? | Excel Discussion (Misc queries) | |||
linking Outlook email folders/subfolders to excell spreadsheets | Excel Worksheet Functions | |||
Exporting a date field in Excel to an Outlook Calendar? | Excel Discussion (Misc queries) | |||
import calendar items from excel into outlook calendar | Excel Discussion (Misc queries) |