excel to open outlook calendar on specific date

Luis FR

New Member
Joined
Oct 16, 2020
Messages
1
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello gurus! I've been looking around for a while and even though I was able to find some VBA scripts to open outlook calendar from excel, I need to find a way to open outlook's calendar on a given date that is feed from a defined cell.
I don't know if that can be done.

regards!
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Logit

Well-known Member
Joined
Aug 31, 2016
Messages
3,846
.
This is one method :

Option Explicit

Public RunWhen As Double

'**************************************Application.OnTime**********************
Sub ScheduleMacro()
'This schedules the next run time
RunWhen = Sheet1.Range("A1").Value
Application.OnTime EarliestTime:=RunWhen, Procedure:="MyMacro", Schedule:=True
End Sub
Sub MyMacro()
''''''''''''''''''''''''
' Your code here
MsgBox "Hi"
''''''''''''''''''''''''
End Sub
Sub CancelSchedule()
'Cancels the scheduled event
RunWhen = Sheet1.Range("A1").Value
On Error Resume Next
Application.OnTime EarliestTime:=RunWhen, Procedure:="MyMacro", Schedule:=False
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,122,303
Messages
5,595,324
Members
413,986
Latest member
Elizsk

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top