![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi:
Have created this code to allow me to select a folder I want to put my send mail item in or if I don't want it in a specific folder, I hit "cancel" and it puts it in my Send Folder. *********** Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) Dim objNS As NameSpace Dim objFolder As MAPIFolder If Not Autoforward Then Set objNS = Application.GetNamespace("MAPI") Set objFolder = objNS.PickFolder If TypeName(objFolder) "Nothing" Then Set Item.SaveSentMessageFolder = objFolder End If Set objFolder = Nothing Set objNS = Nothing End If Autoforward = False End Sub ************** Now what I want to do is when I put an appointment in my calendar, I want that same popup selection to allow me to COPY that appointment into another selected calendar (public folder calendar). Is this possible? Thanks. Wanda |
Ads |
#2
|
|||
|
|||
![]()
Yes, it's possible, but would use a completely different event -- MAPIFolder.Items.ItemAdd. The sample code at http://www.outlookcode.com/codedetail.aspx?id=456 demonstrates how it works for Sent Items, so you should be able to adapt that.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Wanda" wrote in message ... Hi: Have created this code to allow me to select a folder I want to put my send mail item in or if I don't want it in a specific folder, I hit "cancel" and it puts it in my Send Folder. *********** Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) Dim objNS As NameSpace Dim objFolder As MAPIFolder If Not Autoforward Then Set objNS = Application.GetNamespace("MAPI") Set objFolder = objNS.PickFolder If TypeName(objFolder) "Nothing" Then Set Item.SaveSentMessageFolder = objFolder End If Set objFolder = Nothing Set objNS = Nothing End If Autoforward = False End Sub ************** Now what I want to do is when I put an appointment in my calendar, I want that same popup selection to allow me to COPY that appointment into another selected calendar (public folder calendar). Is this possible? Thanks. Wanda |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I synchronize my personal calendar with a public folder calend | Charliehd | Outlook - Calandaring | 1 | July 26th 06 02:52 PM |
Public folder calendar item automatically copied to private calendar ? | Manuelp | Outlook - General Queries | 6 | June 27th 06 09:56 PM |
Personal Calendar to a Public Calendar | Wanda | Outlook - Using Forms | 1 | June 23rd 06 07:08 PM |
synch my personal folder calendar with my mailbox calendar | Andy29 | Outlook - Calandaring | 1 | May 11th 06 03:37 PM |
Sync Public Calendar with Personal Calendar | Jeff Bendert | Outlook - Calandaring | 1 | March 23rd 06 03:10 PM |