How to insert Flash into an Excel file

Source: Internet
Author: User

We can see the online "[strong to] games with only four customs clearance in the world !. XLS is an Excel file, which contains a flash game. I want to see how Flash is embedded into the Excel file! The procedure for inserting a flash file into an Excel file using an OLE object is as follows:

Step 2 open the Excel file. Right-click the blank area in the toolbar and choose control toolbox to bring up the control toolbox;

In step 2, click the "other control items" button on the rightmost side of the control toolbox and select the "Shockwave Flash Object" item to indicate the flash to be inserted;

When the mouse turns into a small cross in step 1, draw a box of moderate size in the Excel editing area with the mouse to display the Flash animation;

 

In step 2, right-click the box you have drawn and select the attribute menu item to bring up the attribute setting box. Set the "movie" attribute value to the Flash URL or flash hard disk address. after entering the value, close the attribute box;

Return to the Excel editing page in step 2. Click the "Exit Design Mode" button on the far left of the "control toolbox" to restore the normal mode. Then, you can see the flash inserted into the Excel file.

After these steps, the Flash file is inserted into the Excel file and the macro is recorded as follows:

 

Sub Macro1 ()
' Macro1 macro
' Macro recorded by Administrator. Time:
'
Application. commandbars ( " Control toolbox " ). Visible =   True
Activewindow. smallscroll down: = 12
Activesheet. oleobjects. Add (classtype: = " Shockwaveflash. shockwaveflash.9 " ,_
Link: = False , Displayasicon: = False , Left : = 48 , Top: = 204 , Width: = 239.25 _
, Height: = 153.75 ). Select
End sub

With macrosCodeThe above steps can be easily implemented using VBA code. I did not do this exercise.

By the way, share an interesting flash:

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.