Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Zugriff auf das globale Adressbuch von Outlook 97

Empfohlene Antworten

Veröffentlicht

Wie kann man mit Hilfe von OLE auf das globale Adressbuch von Outlook 97 zugreifen ?

(Ich will kein Virus schreiben !!!)

das war ein teil meines abschlußprojektes... allerdings mit outlook 98/2000 ob es mit 97 geht weiss ich nicht. folgender code ist VB und du musst ein verweis auf das ms outlook xx objektmodell machen:

kann dir gern den ganzen source mailen, sag bescheid.

Option Explicit

'-----------------------------------------------------------------------------

' searches the folder thePublicFolder for strValue from theCategory

'-----------------------------------------------------------------------------

Public Sub OutlookCompare(thePublicFolder As String, theCategory As String, theValue As String)

'local variables

Dim aApp As Object

Dim aNamespace As Object

Dim aPublicFolder As Object

Dim aContact As Object

Dim aItem As Object

Dim aNewFolder As Object

Dim alogFound As Boolean

alogFound = True

'create objects

Set aApp = CreateObject("Outlook.Application")

Set aNamespace = aApp.GetNamespace("MAPI")

Set aContact = aNamespace.Folders("Öffentliche Ordner")

Set aPublicFolder = aContact.Folders("Alle Öffentlichen Ordner")

'folder below "Alle Öffentlichen Ordner"

Set aNewFolder = aPublicFolder.Folders(thePublicFolder)

'search the folder strPublicFolder

Set aItem = aNewFolder.Items.Find("[" & theCategory & "] = '" & theValue & "'")

'if contact is not found then set alogFound to false

If (aItem Is Nothing) Then

alogFound = False

End If

'show the main app if minimized and a contact was not found

'else display the Outlook contact

If alogFound = False Then

If frmMain.WindowState = vbMinimized Then

frmMain.WindowState = vbNormal

End If

Else

'display the Outlook contact

aItem.Display

End If

'kill objects

Set aApp = Nothing

Set aNamespace = Nothing

Set aPublicFolder = Nothing

Set aContact = Nothing

Set aNewFolder = Nothing

Set aItem = Nothing

End Sub

'-----------------------------------------------------------------------------

' creates a new outlook contact in "thePublicFolder"

'-----------------------------------------------------------------------------

Public Sub createNewContact(thePublicFolder As String)

'local variables

Dim aApp As Object

Dim aNamespace As Object

Dim aPublicFolder As Object

Dim aContact As Object

Dim aItem As Object

Dim aNewFolder As Object

'create objects

Set aApp = CreateObject("Outlook.Application")

Set aNamespace = aApp.GetNamespace("MAPI")

Set aContact = aNamespace.Folders("Öffentliche Ordner")

Set aPublicFolder = aContact.Folders("Alle Öffentlichen Ordner")

'Folder below "Alle Öffentlichen Ordner"

Set aNewFolder = aPublicFolder.Folders(thePublicFolder)

Set aItem = aNewFolder.Items.Add

'display the Outlook contact

aItem.Display

'kill objects

Set aApp = Nothing

Set aNamespace = Nothing

Set aPublicFolder = Nothing

Set aContact = Nothing

Set aNewFolder = Nothing

Set aItem = Nothing

End Sub

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.