find folder (vbscript & outlook today) 
Author Message
 find folder (vbscript & outlook today)

when making a customized outlook-today page for our intranet i ran into the
problem of finding
the "public folders" when the user has done installations with mixed
languages.

trying to detect the language setting doesn't help since there are a few
cases were outlook reports
"english" but still the "public folder" is called "gemensamma mappar"
(swedish for "public folders")
and therefor making my script fail to find the folder.

****the script i'm trying to use****
<SCRIPT LANGUAGE="VBScript">
         <!--
    set olApp = window.external.outlookapplication
    set olFolder = olApp.GetNameSpace("MAPI")
    if olApp.LanguageSettings.LanguageID(2) = 1053 then '1053 = swedish,
1033 = english
     olFolder1 = "Gemensamma Mappar"
    else
     olFolder1 = "Public Folders"
    end if
    olFolder2 = olFolder.Folders(olFolder1).Folders(2)

    'l?nk till Anslagstavlan
    document.writeln "<A HREF='outlook:\\" & olFolder1 & "\" & olFolder2 &
"\Anslagstavlan'><b><font face=""Arial"" size=""3""
color=""#00346B"">anslagstavlan</font></b></a>"
   -->
   </SCRIPT>

using a numberr instead of the folder string name like this:

set olFolder = olApp.GetNameSpace("MAPI")
olFolder.Folders(1)

wont work either since the "public folder" can change number if you add or
delete another folders.

is there a way to check if the a folder with a specific name exists? mayby
thats the solution?

thanks
Olof



Mon, 11 Nov 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Finding the top level folder - Outlook Today

2. VB: opening Outlook Today folder

3. Calling a form from outlook today folder home page

4. VBScript in Outlook Today

5. PLEASE HELP! Outlook Today (outlook.htm), Intranet configurations

6. VBScript in customized Outlook Today screen

7. PLEASE HELP! Outlook Today (outlook.htm), Intranet configurations

8. Outlook forms and vbscript & outlook programming

9. Outlook 97 Vbscript to move each item in a collection to new folder

10. How to get/change Offline-property of Outlook-Folders with VBScript

11. Object could not be found - Outlook folders

12. Finding Items in Outlooks MAPI-Folder

 

 
Powered by phpBB® Forum Software