![]() |
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
|
|||
|
|||
![]()
Is it possible to clear the name cache from the .pst using VBA?
|
Ads |
#2
|
|||
|
|||
![]()
If you mean the "nickname" list it's stored in the file system as an .NK2
file. It's not in the mail store. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "jonYCP" wrote in message ... Is it possible to clear the name cache from the .pst using VBA? |
#3
|
|||
|
|||
![]()
Thank you. Pardon my ignorance. I was referring to the name cache (as it is
referred to in various help files) that is used to Autocomplete email addresses in the To: block of a new message. I found a reference on Microsoft Top 10 Tips for Outlook to delete the .nk2 file to delete the cache. This works, so that the list of emails does not appear when entering a previously sent email address. Actually, would you know how to ask the path to the .NK2 file from within a VBA procedure? I am running a procedure from Access to modify Outlook data. "Ken Slovak - [MVP - Outlook]" wrote: If you mean the "nickname" list it's stored in the file system as an .NK2 file. It's not in the mail store. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "jonYCP" wrote in message ... Is it possible to clear the name cache from the .pst using VBA? |
#4
|
|||
|
|||
![]()
The path is C:\Documents and Settings\windows logon\Application
Data\Microsoft\Outlook\profile_name.nk2. You can query the Win32 API call SHGetFolderPath to get the path to \Application Data. From there you can concatenate the rest of the name up to the profile name. The usage for SHGetFolderPath is in the MSDN library. The profile name is the hard part. You'd have to use Extended MAPI and IOlkAccountManager using C++ or Delphi. For VBA/VB you would need to use the Redemption.RDOSession.ProfileName property. Redemption is a 3rd party library at www.dimastr.com/redemption -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "jonYCP" wrote in message ... Thank you. Pardon my ignorance. I was referring to the name cache (as it is referred to in various help files) that is used to Autocomplete email addresses in the To: block of a new message. I found a reference on Microsoft Top 10 Tips for Outlook to delete the .nk2 file to delete the cache. This works, so that the list of emails does not appear when entering a previously sent email address. Actually, would you know how to ask the path to the .NK2 file from within a VBA procedure? I am running a procedure from Access to modify Outlook data. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Couldn't open user defined form and clear cache | Lucia | Outlook and VBA | 3 | September 6th 06 11:48 AM |
How do I clear autocomplete cache when I have no NK2-file? | Kjetil Thorstensen | Outlook - Using Contacts | 3 | August 29th 06 11:03 PM |
How do you clear an appointmnet kept? | RonPasa | Outlook - Using Contacts | 3 | July 29th 06 06:53 AM |
Macro to clear Outlook cache | [email protected] | Outlook - Using Forms | 0 | May 29th 06 07:28 PM |
Clear "To" cache. | William Stacey [MVP] | Outlook - General Queries | 2 | March 14th 06 06:45 PM |