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 () 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: