Macro for Properties of ActiveX - PPT

davulf

Active Member
Joined
Jul 4, 2005
Messages
273
Hi Experts,

I'm currently working with a client and I'm having a problem with the way that Shockwave Flash Objects are being shown within PowerPoint. Ideally, we would like to have the NoScale property set for the ScaleMode, but for some reason this will not stay.

For example, when I embed the SWF and then set the ScaleMode to NoScale and run the show, it will still scale. Then I will go back to the properties box and notice that ScaleMode has been reset to ShowAll. If I set this back to NoScale, it will work properly.

It is unrealistic to expect all of the users to be able to do this, and so I need a solution to force a NoScale. Is there VBA or anything that can do this?

Thanks,
DavULF
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I tried this:
Code:
Sub OnSlideShowPageChange(ByVal SSW As SlideShowWindow)
    If SSW.View.CurrentShowPosition = 1 Then
        MsgBox "test"
    
    
        Dim otxtBox As ShockwaveFlash ' MS Forms textbox
        ' Get a reference to the text box object
        Set otxtBox = ActivePresentation.Slides(1).ShockwaveFlash1.OLEFormat.Object


        ' Now manipulate it's properties

        With otxtBox
            .ScaleMode = 3
        End With
        
        ShockwaveFlash1.ScaleMode = 3
        
    End If
End Sub

Still no luck, but maybe that helps someone to get a better idea of what I'm looking for.
 
Upvote 0
Because I'm a nice guy I'll post the code I came up with. Thanks for all of the help ;).

Code:
Sub OnSlideShowPageChange(ByVal SSW As SlideShowWindow)

    If SSW.View.CurrentShowPosition = 1 Then

    With Slide1

 

            With ShockwaveFlash1

                .ScaleMode = 3

            End With

 

      End With

    End If

End Sub
 
Upvote 0

Forum statistics

Threads
1,225,381
Messages
6,184,632
Members
453,248
Latest member
gmazee

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