![]() |
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
|
|||
|
|||
![]()
I click on a contact and it opens in the normal form
I've added a button on the toolbar that I click which copies the contacts address, and opens a new word document. I'd also like it to go ahead and close that contact form, (close and save, that is) This must be easy to do, but I'm not sure how... thanks. |
Ads |
#2
|
|||
|
|||
![]()
If the contact is called item then item.Close would do it.
-- 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 "Southern at Heart" wrote in message ... I click on a contact and it opens in the normal form I've added a button on the toolbar that I click which copies the contacts address, and opens a new word document. I'd also like it to go ahead and close that contact form, (close and save, that is) This must be easy to do, but I'm not sure how... thanks. |
#3
|
|||
|
|||
![]()
I added:
Item.Save Item.Close to my code but that didn't do anything. I have manually opened this contact, I mean: I open goto my contacts, double click on a contact, then click a button on the toolbar that I added, which copies their address, etc. ...then at the end of that code I need it to close that contact. I thought all contacts were 'items'. ...anyway, adding item.close didn't do anyting. "Ken Slovak - [MVP - Outlook]" wrote: If the contact is called item then item.Close would do it. -- 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 "Southern at Heart" wrote in message ... I click on a contact and it opens in the normal form I've added a button on the toolbar that I click which copies the contacts address, and opens a new word document. I'd also like it to go ahead and close that contact form, (close and save, that is) This must be easy to do, but I'm not sure how... thanks. |
#4
|
|||
|
|||
![]()
item.Close is only if your open contact is called item. If it's called
oContact then use oContact.Close. If it's called objContact then objContact.Close. -- 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 "Southern at Heart" wrote in message ... I added: Item.Save Item.Close to my code but that didn't do anything. I have manually opened this contact, I mean: I open goto my contacts, double click on a contact, then click a button on the toolbar that I added, which copies their address, etc. ...then at the end of that code I need it to close that contact. I thought all contacts were 'items'. ...anyway, adding item.close didn't do anyting. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Close document | boltnia | Outlook and VBA | 3 | July 18th 08 02:08 PM |
Why is the "X" used for delete so close to the "save and close"? | Carol | Outlook - Using Contacts | 3 | July 29th 07 03:31 AM |
Close Message, Close Outlook | cdf | Outlook - General Queries | 2 | April 16th 07 03:42 PM |
OE doesn't close | Andre De Clercq | Outlook Express | 2 | April 13th 07 02:45 AM |
Use private contact list, outlook will close | man | Outlook - Installation | 0 | October 20th 06 02:45 AM |