+ Reply to Thread
Results 1 to 2 of 2

Extract SWF file from Excel and World

  1. #1
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Extract SWF file from Excel and World

    Hi,

    Here is code I found on Chines site for extracting SWF Small Web Format file from Excel and Word.

    HTML Code: 
    http://cat14051.mysinablog.com/index...ticleId=555049
    Last edited by shukla.ankur281190; 04-24-2018 at 06:11 AM.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Extract SWF file from Excel and Word

    Hi,

    Here is code I found on Chines site for extracting SWF Small Web Format file from Excel and Word.

    HTML Code:
    Sub ExtractFlash()
    Dim tmpFileName As String, FileNumber As Integer
    Dim myFileId As Long
    Dim myArr() As Byte
    Dim i As Long
    Dim MyFileLen As Long, myIndex As Long
    Dim swfFileLen As Long
    Dim swfArr() As Byte

    tmpFileName = Application.GetOpenFilename("office File(*.doc;*.xls),*.doc;*.xls", , "確定要分析的 Office 檔")

    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 < MyFileLen
    If myArr(i) = &H46 Then
    If myArr(i + 1) = &H57 And myArr(i + 2) = &H53 Then
    swfFileLen = CLng(&H1000000) * myArr(i + 7) + CLng(&H10000) * myArr(i + 6) + CLng(&H100) * myArr(i + 5) + myArr(i + 4)
    ReDim swfArr(swfFileLen - 1)
    For myIndex = 0 To swfFileLen - 1
    swfArr(myIndex) = myArr(i + myIndex)
    Next myIndex
    Exit Do
    Else
    i = i + 3
    End If
    Else
    i = i + 1
    End If
    Loop

    myFileId = FreeFile
    tmpFileName = Left(tmpFileName, Len(tmpFileName) - 4) & ".swf"
    Open tmpFileName For Binary As #myFileId
    Put #myFileId, , swfArr
    Close myFileId

    MsgBox "以" & tmpFileName & "名字保存"

    End Sub
    http://cat14051.mysinablog.com/index...ticleId=555049
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Extract multi excel file into a single file
    By saputroa272 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-19-2015, 03:01 PM
  2. World Cup Group Ranking (Yes I know, another World cup Thread)
    By ian.clark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2014, 07:01 AM
  3. [SOLVED] Wanted to extract data from a file which is already an excel macro file
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2013, 11:43 AM
  4. How to extract Information from an Excel File and entering those data in a text file?
    By bikash.nitk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2012, 12:13 PM
  5. Replies: 1
    Last Post: 07-31-2011, 08:24 PM
  6. Replies: 5
    Last Post: 03-21-2007, 03:20 PM
  7. File to keep track of World Cup 2006
    By chin_un_len in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2006, 07:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1