Sie sind vermutlich noch nicht im Forum angemeldet - Klicken Sie hier um sich kostenlos anzumelden Impressum 
Sie können sich hier anmelden
Dieses Thema hat 20 Antworten
und wurde 263 mal aufgerufen
 Skripte und Zusatzprogramme
Seiten 1 | 2
R.Wilke Offline



Beiträge: 6.334

12.03.2011 11:38
#16 RE: Outlook-Ordner "Gesende Objekte" von überall aufrufen Zitat · Antworten

Marius,

it is a good thing that you identified Lindsay as the author of the above script, which gives me a chance to comment on it while being in a better position. I guess I might re-use the whole concept in the future.

If having multiple instances of Outlook is a concern, this is caused by using "AppSwapWith" in the first line of the code which came in by looking at the script that you provided from the start. So where is the problem with it?

Rüdiger

_______________________________________

Dragon Professional 16 auf Windows 10 Pro und Windows 11
SpeechMike Premium (LFH3500); Office 2019 Pro + Office 365 (monatliches Abo)
HP ZBook Fury 17 G8 - i7-11800H - 24 MB SmartCache - 32 GB RAM - 1 TB SSD

Marius Raabe Offline



Beiträge: 718

12.03.2011 11:59
#17 RE: Outlook-Ordner "Gesende Objekte" von überall aufrufen Zitat · Antworten

OHHH my, I am so terribly sorry, Rüdiger & Lindsay! MEA MAXIMA CULPA. Please forgive me, I will never post anything again.

One last thing, Rüdiger: The "AppSwap" Command is not the culprit (not if an Outlook window was already open).

Marius

Dragon NaturallySpeaking 11.5 Legal
Windows 7 Prof. 64-Bit, Office 2010, Jarte Plus
Philips SpeechMike II Pro Plus, SpeechMike III, SpeechMike Air, PDCC 2.8
Intel Core2 Quad Q9550, 2,83 GHz, 2x6MB L-2, 8 GB RAM

R.Wilke Offline



Beiträge: 6.334

12.03.2011 12:07
#18 RE: Outlook-Ordner "Gesende Objekte" von überall aufrufen Zitat · Antworten

Sorry, Marius, you are right, but the fault was with Lindsay obviously. I think I will go back to wrapping my legs around my neck, and post back if and only if I can come up with a working solution.

Rüdiger

_______________________________________

Dragon Professional 16 auf Windows 10 Pro und Windows 11
SpeechMike Premium (LFH3500); Office 2019 Pro + Office 365 (monatliches Abo)
HP ZBook Fury 17 G8 - i7-11800H - 24 MB SmartCache - 32 GB RAM - 1 TB SSD

R.Wilke Offline



Beiträge: 6.334

12.03.2011 20:16
#19 RE: Outlook-Ordner "Gesende Objekte" von überall aufrufen Zitat · Antworten

So, das funktioniert jetzt aber wie von Marius gefordert, sofern Outlook bereits gestartet ist:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 

Sub Main
 
AppSwapWith("Outlook")
 
Dim myNamespace As Outlook.NameSpace
Dim myExp As Outlook.Explorer
 
Set myNamespace = Application.GetNamespace("MAPI")
Set myExp = Application.ActiveExplorer
Set myExp.CurrentFolder = myNamespace.GetDefaultFolder(olFolderSentMail)
 
Set myExp = Nothing
Set myNamespace = Nothing
 
End Sub
 
 

_______________________________________

Dragon Professional 16 auf Windows 10 Pro und Windows 11
SpeechMike Premium (LFH3500); Office 2019 Pro + Office 365 (monatliches Abo)
HP ZBook Fury 17 G8 - i7-11800H - 24 MB SmartCache - 32 GB RAM - 1 TB SSD

R.Wilke Offline



Beiträge: 6.334

12.03.2011 23:38
#20 RE: Outlook-Ordner "Gesende Objekte" von überall aufrufen Zitat · Antworten

Und hier noch die Variante mit einem Listenbefehl, wobei die Liste die Elemente "Ausgang, Eingang, Kalender" umfasst:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 

Sub Main
 
AppSwapWith("Outlook")
 
Dim myNamespace As Outlook.NameSpace
Dim myExp As Outlook.Explorer
 
Set myNamespace = Application.GetNamespace("MAPI")
Set myExp = Application.ActiveExplorer
 
Select Case ListVar1
Case "Eingang"
Set myExp.CurrentFolder = myNamespace.GetDefaultFolder(olFolderInbox)
Case "Ausgang"
Set myExp.CurrentFolder = myNamespace.GetDefaultFolder(olFolderSentMail)
Case "Kalender"
Set myExp.CurrentFolder = myNamespace.GetDefaultFolder(olFolderCalendar)
End Select
 
Set myExp = Nothing
Set myNamespace = Nothing
 
End Sub
 
 

_______________________________________

Dragon Professional 16 auf Windows 10 Pro und Windows 11
SpeechMike Premium (LFH3500); Office 2019 Pro + Office 365 (monatliches Abo)
HP ZBook Fury 17 G8 - i7-11800H - 24 MB SmartCache - 32 GB RAM - 1 TB SSD

Marius Raabe Offline



Beiträge: 718

13.03.2011 10:01
#21 RE: Outlook-Ordner "Gesende Objekte" von überall aufrufen Zitat · Antworten

Toll, toll, toll, vielen Dank für die Erfüllung der "Forderungen" - ich bin begeistert!

Es klappt übrigens auch z. B. mit weiteren Case-Zeilen für die Ordner Entwürfe und Journal wie folgt (alles natürlich nur, wenn der Befehlsname entsprechende Listeneinträge enthält und die Outlook-Bibliothek der jeweiligen Version eingebunden ist).

Case "Entwürfe"
Set myExp.CurrentFolder = myNamespace.GetDefaultFolder(olFolderDrafts)
Case "Journal"
Set myExp.CurrentFolder = myNamespace.GetDefaultFolder(olFolderJournal)


Dankbare Grüße, Marius Raabe

Dragon NaturallySpeaking 11.5 Legal
Windows 7 Prof. 64-Bit, Office 2010, Jarte Plus
Philips SpeechMike II Pro Plus, SpeechMike III, SpeechMike Air, PDCC 2.8
Intel Core2 Quad Q9550, 2,83 GHz, 2x6MB L-2, 8 GB RAM

Seiten 1 | 2
Ähnliche Themen Antworten/Neu Letzter Beitrag⁄Zugriffe
Ordner dataarchiv mehr als 30 GB groß
Erstellt im Forum Fragen zur Anwendung von Harald
2 08.04.2024 12:40
von Harald • Zugriffe: 211
Dragon und das neue Outlook
Erstellt im Forum Fragen zur Anwendung von rc.otto
1 04.03.2024 09:01
von Marius_ • Zugriffe: 130
Kann der Temp-Ordner von Nuance Dragon nach der Installation gelöscht werden?
Erstellt im Forum Fragen zur Anwendung von Max.T
7 15.01.2024 09:27
von Max.T • Zugriffe: 211
Dragon Legal 16 – erste Erfahrungen
Erstellt im Forum Berichte und Tipps von Marius_
4 29.03.2023 17:27
von royaltyrant • Zugriffe: 1079
Email
Erstellt im Forum Fragen zur Anwendung von OskarAusDerTonne
2 14.01.2023 12:34
von R.Wilke • Zugriffe: 97
Welches ist die aktuell ausgereifteste Version auf individual professional
Erstellt im Forum Fragen zur Anwendung von Festinalente1975
0 12.04.2022 07:48
von Festinalente1975 • Zugriffe: 430
Leertaste ... od. Leerzeichen, Leerschritt
Erstellt im Forum Fragen zur Anwendung von Vieta
2 09.03.2022 21:20
von Vieta • Zugriffe: 211
Dragon Professional und Outlook 365
Erstellt im Forum Fragen zur Anwendung von Berthold
1 16.12.2021 10:40
von Marius_ • Zugriffe: 510
Dragon Naturallyspeaking 13 und Office 2019, Outlook stürzt ab.
Erstellt im Forum Fragen zur Anwendung von 7D
2 01.12.2021 12:54
von pesa • Zugriffe: 524
Mit Sprachbefehl Dateien bei E-Mails anhängen
Erstellt im Forum Skripte und Zusatzprogramme von Kasjan
2 13.12.2020 12:20
von Kasjan • Zugriffe: 376
 Sprung  
Xobor Ein Kostenloses Forum | Einfach ein Forum erstellen
Datenschutz