Walker News

How To Embed SWF In Microsoft Office 2007 Document

I wrote two posts of this topic using Microsoft Word 2007 and Microsoft Excel 2007 as the example, complemented with screenshots and screencasts posted to WalkerNews Channel @ YouTube.
However, I find mess in both posts because of mistake made in the steps. In addition, Microsoft Word 2007 and 2003 disable the embedded Shockwave flash game if using Word 2007 to save it in *.doc format and the option to run ActiveX / Macros is disabled with / without notification.

On the other hand, Microsoft Excel 2007 and 2003 is able to initialize and play the embedded SWF game regardless the worksheet is saved in *.xlsx or *.xls format, even if the “disable all macros with notification” in Trust Center is enabled.

I guess that’s why I received most of the SWF games embedded in Microsoft Excel and lesser in Microsoft Word. Thus, the Microsoft Excel 2007 SP2 is used as a reference of this “revised” guide.

Embed SWF game in Microsoft Excel 2007 SP2

1) Turn on or show the Developer tab in Ribbon bar, if it’s not already there.

Access the Developer Tab in Office 2007 Ribbon menu interface.

2) Go to Developer tab, click the Insert button in Controls group, followed by More Controls icon.

How to use Word 2007 to embed SWF file or Shockwave flash game?

3) In the More Controls dialog box, select Shockwave Flash Object and click OK button.

Insert Shockwave Flash object to Word 2007 document

4) As soon as after clicking OK, use the mouse pointer to draw a box on the worksheet (big or small, rectangle or square, is up to you). Right click on the envelope-alike box and select Properties from the Context menu.

Configure Shockwave flash object embedded in Word 2007

5) In the Properties dialog box, configure those key properties of Shockwave Flash Object (as those highlighted in screenshot):
  • EmbedMovie set to True; otherwise, the SWF file is not truly embedded in the Excel worksheet.
  • Movie – specify the absolute / full path of the SWF file in question. Microsoft Excel refers to this path to embed the SWF file when the worksheet is saved.
  • FlashVars is optional, e.g. if you want the embedded SWF game starts automatically upon opening the worksheet, specify autostart=yes here.

The steps to embed SWF file or Shockwave Flash game in Microsoft Excel 2007 SP2.

6) Close the Properties dialog box, by clicking the X button or press ALT+F4 when the dialog box is in focus.

7) Save the worksheet into *.xls or *.xlsx format (*.xls is compatible with Excel 97-2003 while *.xlsx is only compatible with Excel 2007 or above).

8) Open the saved worksheet and confirm the embedded Shockwave flash works correctly.

Now what? The saved worksheet is ready for distribution, in which the recipients are able to play the embedded Shockwave game (except those who don’t use Microsoft Excel).


Custom Search

  1. Nisha September 29th, 2009 4:29 PM

    Hi I followed the guide here and it works well. Thank you so much.
    But, somehow, when i enter the autostart=yes and press enter, it disappear.
    Thus, the swf file doesn’t start automatically.

    Hope you can enlighten me. Thanks.

  2. Vaibhav November 18th, 2009 2:38 PM

    Hi….

    Actually in my Microsoft Excel 2007, there is not any Developer tab where i have to add flash file embeded…….

    Can u sugest me any other option……..

  3. Walker November 18th, 2009 9:57 PM

    @Vaibhav, please see the earlier post on how to turn on or enable Developer Tab in Office 2007.

  4. Drake November 24th, 2009 9:25 PM

    Cheers m8 thanks for the two guides on how to show the dev tab and how to embed swf’s :)

  5. silentP January 23rd, 2010 4:31 AM

    This is awesome, but what if I want to remove the embedded swf file and save it to my desktop. If I try to remove it, it becomes scrap

  6. higs March 27th, 2010 4:33 AM

    this was just what i am looking for! Thanks alot!

    however…

    I too had the same problem as Nisha did.

    the autostart=yes just disapears. any ideas?

  7. Alex99 June 22nd, 2010 7:17 AM

    Hi . This work . Thank you

  8. Mossad June 27th, 2010 9:04 PM

    Thank you , works fine

  9. Bimali September 2nd, 2010 2:14 AM

    Hi,
    Excellent. U’ve guided so good here. Thanks again 4 saving my time.