embed swf shockwave in Excel 2007

Status
Not open for further replies.

jasonguppy

New Member
Joined
May 23, 2008
Messages
8
Can someone help me figure out how to imbed a flash file in Excel? I can do it in 2003 but not 2007… if I manually embed a shockwave flash activeX object I can get the .swf file to show but then when I close the file and open it back up the framnum property goes from 0 to -1 and won’t let me change back to 0. So now as a work around I’m thinking of adding the shockwave object on the fly as you open the file but I can only figure out how to attach to a form rather than imbed in a sheet. Again in 2003 the manual insert works fine.

This is my form code that works fine but I would rather not have to pop up a form:

Private Sub UserForm_Initialize()
Me.ShockwaveFlash1.DisableLocalSecurity
Me.ShockwaveFlash1.Movie = "\\Neo\Dev\MotherLoad\Modelx\Flash.swf"
End Sub

This is called from a button:
Sub jrgcode()
UserForm2.Show
End Sub

I tried adding this to get the flash file imbedded in the worksheet on open

Private Sub Workbook_Open()
With Sheet6.OLEObjects.Add(ClassType:="ShockwaveFlash.ShockwaveFlash.9", _
Link:=False, DisplayAsIcon:=False, Left:=135.75, Top:=63, Width:= _
446.25, Height:=290.25)
>> this line is not working, I can’t figure out how to add the .movie property
'.Object.Movie = \\Neo\Dev\MotherLoad\Modelx\Flash.swf
End With
End Sub

Any ideas on how to get this thing to “stick” in Excel 2007??
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Status
Not open for further replies.

Forum statistics

Threads
1,215,263
Messages
6,123,956
Members
449,135
Latest member
jcschafer209

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