Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Anzeige
Inhaltsverzeichnis

Makro

Forumthread: Makro

Makro
28.03.2003 14:06:39
Caro
Hallo Zusammen,

habe folgendes Problem, bei dem ihr mir hoffentlich helfen könnt.
Das Makro bezieht sich auf eine Zelle Spalte F, sollte aber auf alle Zellen dieser Spalte ausgeführt werden und den Inhalt von der Betreffenden Zeile aus Spalte A und D auch noch ins Textfeld übertragen:

Sub termin ()

Dim olApp As Outlook.Application
Dim termin As Outlook.AppointmentItem

Set olApp = New Outlook.Application
Set termin = olApp.CreateItem(olAppointmentItem)
With termin

.Subject = "Betreff"
.Body = vbCr & vbCr & "Dringend"
.Location = "Büro"
.Start = Range("F5).Value + TimeValue("9:00")
.Duration = 60
.ReminderMinutesBeforeStart = 10
.Categories = "Hauptkunde"
.Display
.Importance = olImportanceHigh
End With
Set termin = Nothing
End Sub

Danke im voraus!!!!


Anzeige

2
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
Re: Makro
28.03.2003 15:09:45
Mo

Versuch es mal so

Sub termin ()

Dim olApp As Outlook.Application
Dim termin As Outlook.AppointmentItem

Set olApp = New Outlook.Application
Set termin = olApp.CreateItem(olAppointmentItem)
With termin

.Subject = "Betreff"
.Body = vbCr & vbCr & "Dringend"
.Location = "Büro"
for i = 1 to 65536
.Start = Range("F" & I).Value + TimeValue("9:00")
.Duration = 60
.ReminderMinutesBeforeStart = 10
.Categories = "Hauptkunde"
.Display
.Importance = olImportanceHigh
next i
End With
Set termin = Nothing
End Sub

Danke im voraus


Anzeige
Re: Makro
28.03.2003 16:28:54
Caro

Werde es sofort testen!!
Vielen dank für die Hilfe!



Anzeige
Anzeige
Live-Forum - Die aktuellen Beiträge
Datum
Titel
14.05.2026 13:31:09
14.05.2026 09:50:42
13.05.2026 19:14:18