Auto open of a file at specific time each day

graemeal

Active Member
Joined
May 17, 2007
Messages
316
Platform
  1. Windows
Now this being a powerpoint question it is most likely the wrong forum to ask this question in but I thought maybe someone has a solution!

I am trying to get a Powerpoint presentation to open at a specific time each day.

I have the below code for an excel spreadsheet but of course Powerpoint does not have a workbook to enter the code in?

Thanks

XP PPT 2007



In Module

Code:
Public dTime As Date
Sub MyMacro()
Windows("TIME.xlsm").Activate
Sheets("Sheet1").Select
dTime = Now + 1
Application.OnTime dTime, "MyMacro"
ActiveWindow.SelectedSheets.PrintOut Copies:=1
End Sub


In ThisWorkBook

Code:
Private Sub Workbook_Open()
Application.OnTime TimeValue("15:25:00"), "MyMacro"
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
 If CLng(dTime) <> 0 Then
    Application.OnTime dTime, "MyMacro", , False
End If
End Sub
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
You can use Windows Scheduler-->Start-->All Programs-->Accessoris-->System Tools-->Task Scheduler.

HTH,
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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
Back
Top