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 29-09-09@16:29

    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 18-11-09@14:38


    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 18-11-09@21:57

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

  4. Drake 24-11-09@21:25

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

  5. silentP 23-01-10@04:31

    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 27-03-10@04:33

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


    I too had the same problem as Nisha did.

    the autostart=yes just disapears. any ideas?

  7. Alex99 22-06-10@07:17

    Hi . This work . Thank you

  8. Mossad 27-06-10@21:04

    Thank you , works fine

  9. Bimali 02-09-10@02:14

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

  10. Mandy 01-10-11@14:29

    thank you for helping me from confusion

  11. Breno 14-12-11@21:57

    I’m with the same problem of Nisha.
    When I put some value, disappear.
    I’m trying to put a var that the flash application will read.

    Other question. Can I change the FlashVars with a macro?

  12. Hassan 30-03-12@19:12

    Thanks buddy, it worked!

  13. Puneet 14-04-12@14:22

    Can an swf file be embedded in an outlook mail as well? I want to embed the file such that when the user opens the email, he sees the flash running without opening any links. (I can attach the swf file along with the mail so that the object has a local reference)

  14. Walker 15-04-12@02:54

    This cannot be done in Outlook 2007 and above (not sure Outlook 2003 can or not):


  15. Janarthaan 08-07-12@11:32

    While embedding swf file in excel some files are not loaded even followed the all procedures like, ’embedd movie=True’. some swf file are not opened after close and reopened. Give any idea.

  16. Renan 18-12-13@00:06

    Hi guys,

    How can I put other images and boxes in Excel on top of the flash?

2017  •  Privacy Policy