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 - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How users can clear the OLKEA folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 22nd 06, 06:33 AM posted to microsoft.public.outlook
Cassanius
external usenet poster
 
Posts: 1
Default How users can clear the OLKEA folder


Quelle: http://tinyurl.com/y8qb3j
Accepted Answer from BlueDevilFan
Date: 06/24/2006 11:16AM PDT
Grade: A
Accepted Answer

Here's the macro. Follow these instructions to use it.

1. Launch Outlook.
2. Click Tools-Macro-Visual Basic Editor.
3. In the code editor expand Microsoft Outlook Objects and click on
ThisOutlookSession.
4. Copy the code below and paste it into the right-hand pane of the
editor window.
5. Click the diskette icon on the toolbar to save the changes.
6. Close the editor.
7. Click Tools-Macro-Security
8. Set the security level to Medium.
9. Close Outlook
10. Launch Outlook. You'll receive a prompt asking if you want to
enable macros. You have to enable them for this code to work.
11. Each time Outlook closes it fires the Quit event and the code runs.
It will find Outlook's temporary files folder and delete its contents.


Private Sub Application_Quit()
Dim objFSO As Object, _
objTempFilesFolder As Object, _
objFolder As Object, _
strProfilePath As String
strProfilePath = Environ("USERPROFILE")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTempFilesFolder = objFSO.GetFolder(strProfilePath & "\Local
Settings\Temporary Internet Files")
For Each objFolder In objTempFilesFolder.SubFolders
If Left(objFolder.Name, 3) = "OLK" Then
objFSO.DeleteFile objFolder.Path & "\*.*", True
End If
Next
Set objFolder = Nothing
Set objTempFilesFolder = Nothing
Set objFSO = Nothing
End Sub


--
Cassanius
Ads
  #2  
Old December 22nd 06, 08:08 AM posted to microsoft.public.outlook
Peter Marchert
external usenet poster
 
Posts: 208
Default How users can clear the OLKEA folder

Or simply use the script "DeleteOLKs" (http://tinyurl.com/9ce35) and/or
see the actual post in the forum on my homepage ("Forum", "Software",
"Sonstige Programme", "DeleteOLKs (English)").

Best Regards
Peter

--
Peter Marchert
[EDP-Service Marchert]
Homepage: Http://Www.Marchert.De
Excel- And Outlook Programming

Cassanius schrieb:

Quelle: http://tinyurl.com/y8qb3j
Accepted Answer from BlueDevilFan
Date: 06/24/2006 11:16AM PDT
Grade: A
Accepted Answer

Here's the macro. Follow these instructions to use it.

1. Launch Outlook.
2. Click Tools-Macro-Visual Basic Editor.
3. In the code editor expand Microsoft Outlook Objects and click on
ThisOutlookSession.
4. Copy the code below and paste it into the right-hand pane of the
editor window.
5. Click the diskette icon on the toolbar to save the changes.
6. Close the editor.
7. Click Tools-Macro-Security
8. Set the security level to Medium.
9. Close Outlook
10. Launch Outlook. You'll receive a prompt asking if you want to
enable macros. You have to enable them for this code to work.
11. Each time Outlook closes it fires the Quit event and the code runs.
It will find Outlook's temporary files folder and delete its contents.


Private Sub Application_Quit()
Dim objFSO As Object, _
objTempFilesFolder As Object, _
objFolder As Object, _
strProfilePath As String
strProfilePath = Environ("USERPROFILE")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTempFilesFolder = objFSO.GetFolder(strProfilePath & "\Local
Settings\Temporary Internet Files")
For Each objFolder In objTempFilesFolder.SubFolders
If Left(objFolder.Name, 3) = "OLK" Then
objFSO.DeleteFile objFolder.Path & "\*.*", True
End If
Next
Set objFolder = Nothing
Set objTempFilesFolder = Nothing
Set objFSO = Nothing
End Sub


--
Cassanius


  #3  
Old December 22nd 06, 01:03 PM posted to microsoft.public.outlook
Brian Tillman
external usenet poster
 
Posts: 17,452
Default How users can clear the OLKEA folder

Cassanius wrote:

Quelle: http://tinyurl.com/y8qb3j
Accepted Answer from BlueDevilFan
Date: 06/24/2006 11:16AM PDT
Grade: A
Accepted Answer

Here's the macro. Follow these instructions to use it.


Or download the free tool OutlookTools from
http://www.howto-outlook.com/products/outlooktools.htm
--
Brian Tillman
 




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
Removing other users folder BubbaFranks Outlook - Calandaring 1 October 12th 06 09:57 PM
How do I open a folder in another users mailbox? Higgsy Outlook and VBA 2 July 10th 06 04:46 PM
How do I clear the open other users folder names dot Outlook - Calandaring 3 April 24th 06 05:15 PM
How to recursively clear all the filters applied to a folder Jean-Marc MOLINA Outlook - General Queries 1 March 30th 06 03:05 PM
Change folder names of all users Gaspar Outlook and VBA 5 March 27th 06 11:40 PM


All times are GMT +1. The time now is 01:28 AM.


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.