<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To Extract SWF Flash From Excel or Word</title>
	<atom:link href="http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/</link>
	<description>A capsule of walker's experience in life...</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:09:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: bharath</title>
		<link>http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-15857</link>
		<dc:creator>bharath</dc:creator>
		<pubDate>Wed, 07 Dec 2011 16:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-15857</guid>
		<description>getting &quot;method or data member not found&quot; error ...:(

please help me</description>
		<content:encoded><![CDATA[<p>getting &#8220;method or data member not found&#8221; error &#8230;:(</p>
<p>please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mtvgp</title>
		<link>http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-14760</link>
		<dc:creator>mtvgp</dc:creator>
		<pubDate>Fri, 13 May 2011 20:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-14760</guid>
		<description>Excellent - what a time-saver!
I had a swf in a ppt slide so I simply copied/pasted the object to an xls file, followed the instructions above with the new xls file and voila!</description>
		<content:encoded><![CDATA[<p>Excellent &#8211; what a time-saver!<br />
I had a swf in a ppt slide so I simply copied/pasted the object to an xls file, followed the instructions above with the new xls file and voila!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SPD</title>
		<link>http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-14612</link>
		<dc:creator>SPD</dc:creator>
		<pubDate>Thu, 14 Apr 2011 08:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-14612</guid>
		<description>Great job,

Also, useful in the new Adobe flash file exploits using doc files.</description>
		<content:encoded><![CDATA[<p>Great job,</p>
<p>Also, useful in the new Adobe flash file exploits using doc files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morpheus</title>
		<link>http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-14413</link>
		<dc:creator>Morpheus</dc:creator>
		<pubDate>Mon, 28 Mar 2011 14:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-14413</guid>
		<description>Great code, thank you very much.
You may deserve to get the red capsule.</description>
		<content:encoded><![CDATA[<p>Great code, thank you very much.<br />
You may deserve to get the red capsule.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-13623</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Wed, 16 Feb 2011 01:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-13623</guid>
		<description>Jay,

Not sure if this will go through....
It&#039;s rare to have multiple flash files in an office file, but this should get them all...
&lt;pre&gt;
Public Sub ExtractEmbed()

Dim tmpFileName As String
Dim FileNumber As Integer
Dim myFileId As Long
Dim MyFileLen As Long
Dim myIndex As Long
Dim swfFileLen As Long
Dim i As Long
Dim swfArr() As Byte
Dim myArr() As Byte
Dim OutCount As Integer


tmpFileName = Application.GetOpenFilename(&quot;MS Office File (*.doc;*.xls), *.doc;*.xls&quot;, , &quot;Open MS Office file&quot;)

If tmpFileName = &quot;False&quot; Then Exit Sub

myFileId = FreeFile

Open tmpFileName For Binary As #myFileId

MyFileLen = LOF(myFileId)

ReDim myArr(MyFileLen - 1)

Get myFileId, , myArr()

Close myFileId

Application.ScreenUpdating = False

i = 0

Do While i &lt; MyFileLen

   If myArr(i) = &amp;H46 Then

      If myArr(i + 1) = &amp;H57 And myArr(i + 2) = &amp;H53 Then

         swfFileLen = CLng(&amp;H1000000) * myArr(i + 7) + CLng(&amp;H10000) * myArr(i + 6) + CLng(&amp;H100) * myArr(i + 5) + myArr(i + 4)

         ReDim swfArr(swfFileLen - 1)

         For myIndex = 0 To swfFileLen - 1
            swfArr(myIndex) = myArr(i + myIndex)
            Next myIndex
         &#039;Exit Do
            OutCount = OutCount + 1
            myFileId = FreeFile
            swfFileName = Left(tmpFileName, Len(tmpFileName) - 4) &amp; &quot;_&quot; &amp; OutCount &amp; &quot;.swf&quot;
            Open swfFileName For Binary As #myFileId
            Put #myFileId, , swfArr
            Close myFileId
      Else
            i = i + 3
      End If

   Else
        i = i + 1
   End If

Loop

&#039;myFileId = FreeFile

&#039;tmpFileName = Left(tmpFileName, Len(tmpFileName) - 4) &amp; &quot;.swf&quot;

&#039;Open tmpFileName For Binary As #myFileId

&#039;Put #myFileId, , swfArr

&#039;Close myFileId

&#039;MsgBox &quot;Save the extracted swf as [ &quot; &amp; tmpFileName &amp; &quot; ]&quot;

End Sub
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Jay,</p>
<p>Not sure if this will go through&#8230;.<br />
It&#8217;s rare to have multiple flash files in an office file, but this should get them all&#8230;</p>
<pre>
Public Sub ExtractEmbed()

Dim tmpFileName As String
Dim FileNumber As Integer
Dim myFileId As Long
Dim MyFileLen As Long
Dim myIndex As Long
Dim swfFileLen As Long
Dim i As Long
Dim swfArr() As Byte
Dim myArr() As Byte
Dim OutCount As Integer

tmpFileName = Application.GetOpenFilename("MS Office File (*.doc;*.xls), *.doc;*.xls", , "Open MS Office file")

If tmpFileName = "False" Then Exit Sub

myFileId = FreeFile

Open tmpFileName For Binary As #myFileId

MyFileLen = LOF(myFileId)

ReDim myArr(MyFileLen - 1)

Get myFileId, , myArr()

Close myFileId

Application.ScreenUpdating = False

i = 0

Do While i &lt; MyFileLen

   If myArr(i) = &amp;H46 Then

      If myArr(i + 1) = &amp;H57 And myArr(i + 2) = &amp;H53 Then

         swfFileLen = CLng(&amp;H1000000) * myArr(i + 7) + CLng(&amp;H10000) * myArr(i + 6) + CLng(&amp;H100) * myArr(i + 5) + myArr(i + 4)

         ReDim swfArr(swfFileLen - 1)

         For myIndex = 0 To swfFileLen - 1
            swfArr(myIndex) = myArr(i + myIndex)
            Next myIndex
         &#039;Exit Do
            OutCount = OutCount + 1
            myFileId = FreeFile
            swfFileName = Left(tmpFileName, Len(tmpFileName) - 4) &amp; &quot;_&quot; &amp; OutCount &amp; &quot;.swf&quot;
            Open swfFileName For Binary As #myFileId
            Put #myFileId, , swfArr
            Close myFileId
      Else
            i = i + 3
      End If

   Else
        i = i + 1
   End If

Loop

&#039;myFileId = FreeFile

&#039;tmpFileName = Left(tmpFileName, Len(tmpFileName) - 4) &amp; &quot;.swf&quot;

&#039;Open tmpFileName For Binary As #myFileId

&#039;Put #myFileId, , swfArr

&#039;Close myFileId

&#039;MsgBox &quot;Save the extracted swf as [ &quot; &amp; tmpFileName &amp; &quot; ]&quot;

End Sub
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-13622</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Wed, 16 Feb 2011 01:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-13622</guid>
		<description>Is &amp;H57 and &amp;H53 the header of the swf file format?
I was hoping to extract different file types that are embedded OLE&#039;s as well - but am not sure how to identify them.

Also, what does the &amp;H46 indicate?</description>
		<content:encoded><![CDATA[<p>Is &amp;H57 and &amp;H53 the header of the swf file format?<br />
I was hoping to extract different file types that are embedded OLE&#8217;s as well &#8211; but am not sure how to identify them.</p>
<p>Also, what does the &amp;H46 indicate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachit</title>
		<link>http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-13188</link>
		<dc:creator>Rachit</dc:creator>
		<pubDate>Tue, 11 Jan 2011 20:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.walkernews.net/2008/03/22/how-to-extract-swf-flash-from-excel-or-word/#comment-13188</guid>
		<description>Excellent work!!!!
really very helpful!!!

Thanx a Ton!!!</description>
		<content:encoded><![CDATA[<p>Excellent work!!!!<br />
really very helpful!!!</p>
<p>Thanx a Ton!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

