Thema Datum  Von Nutzer Rating
Antwort
Rot OUTLOOK - VBA - FOLDER EXPLORER
03.05.2021 15:10:44 stan
NotSolved
04.05.2021 16:34:55 Mase
NotSolved

Ansicht des Beitrags:
Von:
stan
Datum:
03.05.2021 15:10:44
Views:
730
Rating: Antwort:
  Ja
Thema:
OUTLOOK - VBA - FOLDER EXPLORER

hello,

maybe someone has a good tip for me.

i can open an explorer window from outlook via vba to show all mail folder.  

so far, so good.

but:

the explorer window always opens with the last mail account and NOT with the active account in outlook.

i was looking for a determination of the "active store", but i cannot manage it somehow.

 

can anyone help?

 

this is the part of the code for the explorer:

................................................

bypass = 0
If bypass = 0 Then

Dim xNameSpace As NameSpace
Dim xPickFolder As Folder
Dim xExplorer As Explorer
On Error Resume Next
    Set xNameSpace = Outlook.Application.Session
    Set xPickFolder = xNameSpace.PickFolder
        If TypeName(xPickFolder) = "Nothing" Then Exit Sub
            Set xExplorer = Outlook.Application.ActiveExplorer
            xExplorer.Close
            xPickFolder.Display
End If

...................................................

thanx a lot

stan


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
Rot OUTLOOK - VBA - FOLDER EXPLORER
03.05.2021 15:10:44 stan
NotSolved
04.05.2021 16:34:55 Mase
NotSolved