#1
|
|||
|
|||
start a program with the appointment
Hi, I would like to start a program, if an appointment occours (OL 2019). Unfortunately I can only play a sound on this point. Is this possible to start a cmd or vbs or whatever with a calender entry? Extra programms (add ins, extensions...) would be ok. Greetings, Elli_D |
#2
|
||||
|
||||
You can use the reminder event to run a macro to start your program e.g. put the following in the ThisOutlookSession module and it will fire when there is an appointment reminder.
Code:
Private Sub Application_Reminder(ByVal Item As Object) If TypeName(Item) = "AppointmentItem" Then ' Call your macro here MsgBox "It works!" End If End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
Hey gmayor, this sounds good. But, what is a "ThisOutlookSession module" and where I have to place the macro? All i see i have the option to choose a sound. Not a vbs.
Or do you mean the windows scheduler? This is my current way... |
#4
|
||||
|
||||
Open the VBA editor (ALT+F11)
Locate the ThisOutlookSession module And paste the code in that module.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#5
|
|||
|
|||
It works! Great! Thank you very much! Greetings from Germany :-)
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Message "isn't your default program", while in fact it is my default program | jmpavo | Office | 1 | 11-23-2017 01:09 PM |
New to word: formatting a program with bios and pix; needs to be easily editable. Where to start?! | bgbg4us | Word | 1 | 04-02-2015 11:06 PM |
add Appointment | Vibov | Excel | 0 | 03-23-2015 04:30 AM |
difference between scheduled start and start | ketanco | Project | 3 | 01-15-2015 07:53 AM |
Appointment View | aligatrjoe | Outlook | 0 | 01-18-2011 03:42 PM |