imbedding swf shockwave activex object

jasonguppy

New Member
Joined
May 23, 2008
Messages
8
I can imbed a .[COLOR=blue! important][COLOR=blue! important]swf [COLOR=blue! important]file[/COLOR][/COLOR][/COLOR] in my excel 2007 spreadsheet using the [COLOR=blue! important][COLOR=blue! important]shockwave [COLOR=blue! important]flash[/COLOR][/COLOR][/COLOR] object but when I save/close/open the file the framenum property is set to -1, my [COLOR=blue! important][COLOR=blue! important]flash [COLOR=blue! important]file[/COLOR][/COLOR][/COLOR] does not display, and I can't change back to 0. Any ideas how to get the 0 to stick?

thx
 

jasonguppy

New Member
Joined
May 23, 2008
Messages
8
I can imbed a swf file in my excel 2007 spreadsheet using the shockwave object but when I save/close/open the file the framenum property is set to -1, my flash does not display, and I can't change back to 0. Any ideas how to get the 0 to stick?

thx
 

jasonguppy

New Member
Joined
May 23, 2008
Messages
8
To give more detail on this... I can do this just fine 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.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>
This is my form code that works fine but I would rather not have to pop up a form:
<o:p> </o:p>
Private Sub UserForm_Initialize()
Me.ShockwaveFlash1.DisableLocalSecurity
Me.ShockwaveFlash1.Movie = "\\Neo\Dev\MotherLoad\Modelx\Flash.swf"
End Sub
<o:p> </o:p>
This is called from a button:
Sub jrgcode()
UserForm2.Show
End Sub
<o:p> </o:p>
I tried adding this to get the flash file imbedded in the worksheet on open
<o:p> </o:p>
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
<o:p> </o:p>
Any ideas on how to get this thing to “stick” in Excel 2007??
 

Forum statistics

Threads
1,082,284
Messages
5,364,282
Members
400,787
Latest member
bs04c

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top