![]() |
| 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. |
|
|||||||
| Tags: could, custom, form, opened |
|
|
Thread Tools | Display Modes |
|
#21
|
|||
|
|||
|
Item.Save.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "masani paresh" wrote in message ... Ken, Please ignore previous update. It was duplicate. Could you tell me how to save the item.recipient after adding it. Item.Recipient.Save is not working. I tried to find out it from object browser but i could not get it. Thanks, Paresh |
| Ads |
|
#22
|
|||
|
|||
|
Ken,
If I do Item.Save after adding item into Item.Recipient then It is not displaying free/busy status for any conf rooms irrespective of whether I touched the Scheduling tab or not. :-( Please refer my code. Sub CommandButton2_Click Dim confRoomName If Not IsNull(Item.GetInspector.ModifiedFormPages("Find Conference Room").Controls("ListBox1").Value) Then If Not InStr(Item.GetInspector.ModifiedFormPages("Find Conference Room").Controls("ListBox1").Value, "(Free)") = 0 Then confRoomName = Split(Item.GetInspector.ModifiedFormPages("Find Conference Room").Controls("ListBox1").Value, "(Free)", -1, 1) Else confRoomName = Split(Item.GetInspector.ModifiedFormPages("Find Conference Room").Controls("ListBox1").Value, "(Busy)", -1, 1) End If Item.Recipients.Add(confRoomName(0)) Item.Save Else MsgBox "Please select any conference room" End If End Sub Thanks, Paresh "Ken Slovak - [MVP - Outlook]" wrote: Item.Save. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "masani paresh" wrote in message ... Ken, Please ignore previous update. It was duplicate. Could you tell me how to save the item.recipient after adding it. Item.Recipient.Save is not working. I tried to find out it from object browser but i could not get it. Thanks, Paresh |
|
#23
|
|||
|
|||
|
I have no idea what that code is trying to do or how it relates to free/busy
information. To get free/busy information you either call for Recipient.FreeBusy or AddressEntry.GetFreeBusy. So if you add a recipient, then resolve it and then query its F/B information you should get it. Or you can get the AddressEntry objects for all resources you are interested in and then call GetFreeBusy() for those AddressEntry objects. This really seems to be quite removed from the issue you originally posted, that you couldn't open a custom form. It's dragged on for so long and with so many changes of problems that you might be best off just starting a new thread and explaining what problem you face currently there since at this point I have no idea what the problem is. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "masani paresh" wrote in message ... Ken, If I do Item.Save after adding item into Item.Recipient then It is not displaying free/busy status for any conf rooms irrespective of whether I touched the Scheduling tab or not. :-( Please refer my code. Sub CommandButton2_Click Dim confRoomName If Not IsNull(Item.GetInspector.ModifiedFormPages("Find Conference Room").Controls("ListBox1").Value) Then If Not InStr(Item.GetInspector.ModifiedFormPages("Find Conference Room").Controls("ListBox1").Value, "(Free)") = 0 Then confRoomName = Split(Item.GetInspector.ModifiedFormPages("Find Conference Room").Controls("ListBox1").Value, "(Free)", -1, 1) Else confRoomName = Split(Item.GetInspector.ModifiedFormPages("Find Conference Room").Controls("ListBox1").Value, "(Busy)", -1, 1) End If Item.Recipients.Add(confRoomName(0)) Item.Save Else MsgBox "Please select any conference room" End If End Sub Thanks, Paresh |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom Form can’t be opened | runci | Outlook - Using Forms | 0 | December 20th 07 04:41 AM |
| Outlook 2007: Why get message "custom form cannot be opened"? | Nick Piazza | Outlook - General Queries | 1 | February 17th 07 07:16 AM |
| custom button not appearing when a mail item is opened | Pankaj | Add-ins for Outlook | 1 | January 31st 07 04:05 PM |
| Custom Outlook forms blank when opened | D.Farns | Outlook - Using Forms | 2 | December 14th 06 04:35 PM |
| "The custom form could not be opened" What is it talking about? | Sylvia | Outlook - Using Contacts | 10 | July 10th 06 05:15 PM |