Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / March 2008

Tip: Looking for answers? Try searching our database.

How to close a contact

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Southern at Heart - 06 Mar 2008 14:16 GMT
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.
Ken Slovak - [MVP - Outlook] - 06 Mar 2008 14:46 GMT
If the contact is called item then item.Close would do it.

Signature

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

>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
[quoted text clipped - 4 lines]
> This must be easy to do, but I'm not sure how...
> thanks.
Southern at Heart - 06 Mar 2008 16:36 GMT
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.

> If the contact is called item then item.Close would do it.
>
[quoted text clipped - 6 lines]
> > This must be easy to do, but I'm not sure how...
> > thanks.
Ken Slovak - [MVP - Outlook] - 07 Mar 2008 14:23 GMT
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.

Signature

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

>I added:
> Item.Save
[quoted text clipped - 8 lines]
> do
> anyting.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.