Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Exporting Excel Schedule to Outlook Calendar Subfolders


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Exporting Excel Schedule to Outlook Calendar Subfolders


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
exporting outlook calendar to excel krisf Excel Discussion (Misc queries) 0 April 4th 08 12:16 AM
how do i export excel calendar info to outlook calendar? Maggie Excel Discussion (Misc queries) 1 December 31st 07 10:27 PM
linking Outlook email folders/subfolders to excell spreadsheets Elvio Excel Worksheet Functions 0 July 31st 06 07:38 PM
Exporting a date field in Excel to an Outlook Calendar? rkellie Excel Discussion (Misc queries) 0 October 25th 05 08:40 PM
import calendar items from excel into outlook calendar jsewaiseh Excel Discussion (Misc queries) 0 September 2nd 05 03:53 PM


All times are GMT +1. The time now is 03:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"