Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.de.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Überwachung Zellwerte und versandt von mails via Lotus Notes bei Unterschreitung

Hallo Christian,

der angebene Code öffnet dein Emailprogramm und erstellt eine neue
Mail mit der angegebenen Parametern aus "mailto:", "subject" und
"body". Den Senden-Button musst du dann leider noch selbst klicken.

Zu der Bedingung "Wert10" als Auslöser für das Erstellen der Email
(Annahme: die Bedingung steht in Spalte A, Emailadresse in Spalte B,
muss halt evtl. von dir noch angepasst werden):

Sub ÜberprüfenUndEmailErstellen()
Dim sh As Object
Dim IntZähler As Integer
For IntZähler = 1 To Cells(Rows.Count, 1).End(xlUp).Row '1. Zeile bis
letzte Zeile mit bezogen auf Spalte A
If Cells(IntZähler, 1).Value < 10 Then
Set sh = CreateObject("Shell.Application")
sh.ShellExecute "mailto:" & Cells(IntZähler, 2) _
& "?Subject=" & "Betreff" _
& "&Body= Text"
End If
Next IntZähler

Gruss, Kai

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lotus Notes Steve Excel Discussion (Misc queries) 0 February 25th 09 08:27 PM
open lotus notes pdaws Excel Worksheet Functions 0 January 12th 09 04:00 PM
Excel/Lotus Notes StephanieH Excel Programming 2 December 9th 04 08:11 AM
Lotus Notes Newbie Excel Programming 0 September 20th 04 01:55 PM
E-mail using Lotus Notes Alan Hutchins Excel Programming 1 February 20th 04 02:06 PM


All times are GMT +1. The time now is 05:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"