A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to close a contact



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 6th 08, 02:16 PM posted to microsoft.public.outlook.program_vba
Southern at Heart
external usenet poster
 
Posts: 34
Default How to close a contact

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  
Old March 6th 08, 02:46 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to close a contact

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  
Old March 6th 08, 04:36 PM posted to microsoft.public.outlook.program_vba
Southern at Heart
external usenet poster
 
Posts: 34
Default How to close a contact

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  
Old March 7th 08, 02:23 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to close a contact

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

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 03:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.