ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Outlook private calendar (https://www.excelbanter.com/excel-programming/439056-outlook-private-calendar.html)

Frank Van Eygen[_2_]

Outlook private calendar
 
Hello,
I have a macro in Excel that generates appointments in Outlook calendar.

How do I do the same but with a Personal Outlook calendar?


Dim olApp As Outlook.Application
Dim olApt As AppointmentItem
Set olApp = New Outlook.Application
Set olApt = olApp.CreateItem(olAppointmentItem)
With olApt
..Start = Date & " " & txbStopUur 'Sheet4.Range("B14").Value
..End = Date & " " & txbStopUur
..Subject = "Stoptijd berekend voor: " & txbStopUur 'Sheet4.Range("G3") + "
" + Sheet4.Range("M14").Value
..Body = "Priktijd berekend op " & Date & " om: " & txbStartUur & "u" &
txbStartMin & Chr(10) & _
"Berekende stoptijd is : " & txbStopUur
..BusyStatus = olFree
..ReminderMinutesBeforeStart = 15
..Sensitivity = olPrivate
..Save
End With
Set olApt = Nothing
Set olApp = Nothing
MsgBox "Your stop time registration has been sent to Outlook.", , "For
Information"

End Sub



goshute

Outlook private calendar
 
I don't believe you can. I believe you have to copy manually. Switch
to the Category View and manually copy the records over. It may help
if you assign a category before importing.

Goshute


All times are GMT +1. The time now is 07:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com