Powerpoint VB

levickc2k

New Member
Joined
Apr 10, 2009
Messages
25
Hi,

I am really struggling with some VB code that is important. It is in relation to a powerpoint file. I have recorded a macro from one sheet to another to get the following code. (If it helps). But i wish to replace the file opening with an auto run code so that the slideshow will run automatically when it opens.
I do not wish to store the file as a PPS file as i need the show to end as normal and i will be using the file afterwards to export some results.

Sub Macro1()
Presentations.Open FileName:="C:\Desktop\Presentation.ppt", ReadOnly:=msoFalse
With ActivePresentation.SlideShowSettings
.RangeType = ppShowAll
.AdvanceMode = ppSlideShowUseSlideTimings
.PointerColor.SchemeColor = ppForeground
.Run
End With
End Sub

Please help?
 

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.
This snippet comes from a support page on the Microsoft KB. Does the .ShowType command help?
Code:
    ' Prepare and run the slide show.
    With ppPres.SlideShowSettings
        .ShowType = ppShowTypeKiosk
        .LoopUntilStopped = msoTrue

        .RangeType = ppShowAll
        .AdvanceMode = ppSlideShowUseSlideTimings
        .Run
    End With
Denis
 
Upvote 0
Hi, no this doesnt seem to have made any difference.

Although i am not sure if it would work as i do not know what the 'on-load' command is.

In Excel its workbook_open or something like that, but cant find anything that works for this :o(
 
Upvote 0

Forum statistics

Threads
1,225,397
Messages
6,184,716
Members
453,254
Latest member
topeb

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