How do I embed an Adobe Flash (
.swf) file in Microsoft Excel or Word?
migrated from stackoverflow.com Nov 2 '10 at 11:34
This question came from our site for professional and enthusiast programmers.
Using Office XP, Excel or Word
From the 'View' menu select 'Toolbars' and tick the 'Control Toolbox'
On the 'Control Toolbox' toolbar click on the 'More controls' icon
A list of controls will be displayed. Scroll down until you find the 'Shockwave Flash Object' and then click on it.
This should change your cursor to a crosshair. Move to the area on the worksheet where you want to inset the 'Shockwave Flash Object'.
Word will automatically insert the control where the cursor is.
Next right click on the control you have just inserted and select 'Properties'.
Set the following properties
Close the 'Properties' control
Save the file.
Close the file.
Reopen the file.
The .swf file should start playing automatically.
In Office 2007 (in previous versions I guess it's pretty much the same):
"Insert" tab > Object > Flash Document
I noticed, when I tried it, that the swf object displays well enough for me - save, re-open, display.
The swf file in my docx was on my C:\, I right-clicked the swf object > properties > "Movie" : "Full_File_Path.swf". As above, I found that 'EmbedMovie' and 'Enabled' options weren't available in my version of Word 2007 (standard issue, legit version), though 'Embed' is, I toggled it to 'true'.
Therefore, when I sent the docx file around the office - nothing showed up! (shaaaame)
So, following on from this question, is there a way to actually embed the file for those who don't have access to my C:\?
I tried dropping the .swf file on our shared work network, and that dutifully showed up and wowed people - but what if the network's down, or someone is out of the office...
Just curious I suppose, but it's a neat trick so far!
[EDIT] Not sure if this is sane or not, but when I went to re-try the above, I now see that 'EmbedMovie' IS available, but 'Embed' is not, 'Enabled' is still unavailable.
[2nd EDIT] Ok, after a bit more testing, I found that switching back to DOC to embed the swf did so correctly. As a side-effect, the swf stuck on 'first frame' (mostly scripted swf though, so 'first frame' might be inaccurate). I had a few other people try to open my iterative tests:
User 1: 'DOC embedded swf' - displays an 'image', or possibly the swf stuck on frame 1, if swf not available from the file path used during creation.
User 2: 'DOC embedded swf' - displays and runs all scripts if swf available from file path used during creation (in our case a shared drive, a URL like youtube video would cut the mustard, too).
User 3: 'DOCX embedded swf' - displays blank box if swf not available from the file path used during creation (like a shared drive versus C:)
User 4: 'DOCX embedded swf' - displays and runs all scripts if swf available from file path used during creation.
Hope this helps someone/anyone!
protected by Diago Nov 5 '10 at 7:32
Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?