Liebe Community,
ich bin seit ein paar Tagen in den einschlägigen Foren auf der Suche, habe aber noch keine Lösung gefunden und hoffe jmd. kann mir hier weiterhelfen.
Zu meinem Fall: ich erstelle in Outlook einen klassischen UserForm (keines dieser E-Mail Formulare), welches zu Schichtende ausgefüllt werden soll. Bei Fertigstellung soll folgendes Prozedere durchgeführt werden:
1. Screenshot erstellen und in Zwischenablage speichern
2. Screenshot in MailItem kopieren (am liebsten in den Body, zur Not als Attachment)
3. E-Mail an den Kunden versenden
Für Schritt 1 und 3 habe ich bereits Code. Jedoch kriege ich keinen Zugriff auf die Zwischenablage. Es gibt im Outlook-VBA ein sog. "dataobject". Allerdings ermöglicht dieses nur Zugriff auf Text in der Zwischenablage, jedoch nicht auf images (was ein screenshot ja nunmal ist)
Ich habe eine ähnliche Lösung für Excel gefunden (herber.de/forum/archiv/568to57…kt_in_File_speichern.html). Jedoch existieren die entsprechende Objekte in Outlook nicht. Ich bräuchte quasi etwas analoges. Das Sahnehäubchen wäre wie gesagt ein direktes Kopieren in den Body, aber eine Speicherung als File wäre fürs erste vollkommen ausreichend.
Hoffe ich konnte mich verständlich ausdrücken. Danke schonmal vorab für eure Hilfe!
Bernd
P.S.: klar könnte ich auch die Textfelder des UserForms als Text ins MailItem schreiben. Allerdings sind dort bereits einige Funktionen zur Visualisierung enthalten, die ich gerne dem Kunden zur Vefügung stellen möchte.
ich bin seit ein paar Tagen in den einschlägigen Foren auf der Suche, habe aber noch keine Lösung gefunden und hoffe jmd. kann mir hier weiterhelfen.
Zu meinem Fall: ich erstelle in Outlook einen klassischen UserForm (keines dieser E-Mail Formulare), welches zu Schichtende ausgefüllt werden soll. Bei Fertigstellung soll folgendes Prozedere durchgeführt werden:
1. Screenshot erstellen und in Zwischenablage speichern
2. Screenshot in MailItem kopieren (am liebsten in den Body, zur Not als Attachment)
3. E-Mail an den Kunden versenden
Für Schritt 1 und 3 habe ich bereits Code. Jedoch kriege ich keinen Zugriff auf die Zwischenablage. Es gibt im Outlook-VBA ein sog. "dataobject". Allerdings ermöglicht dieses nur Zugriff auf Text in der Zwischenablage, jedoch nicht auf images (was ein screenshot ja nunmal ist)
Ich habe eine ähnliche Lösung für Excel gefunden (herber.de/forum/archiv/568to57…kt_in_File_speichern.html). Jedoch existieren die entsprechende Objekte in Outlook nicht. Ich bräuchte quasi etwas analoges. Das Sahnehäubchen wäre wie gesagt ein direktes Kopieren in den Body, aber eine Speicherung als File wäre fürs erste vollkommen ausreichend.
Hoffe ich konnte mich verständlich ausdrücken. Danke schonmal vorab für eure Hilfe!
Bernd
P.S.: klar könnte ich auch die Textfelder des UserForms als Text ins MailItem schreiben. Allerdings sind dort bereits einige Funktionen zur Visualisierung enthalten, die ich gerne dem Kunden zur Vefügung stellen möchte.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Berhauer“ ()