如果Excel檔案的開啟密碼忘記了,且密碼是6位數以內的數字,可用以下步驟解開(關掉所有程式,為了速度):新開一Excel,同時按Alt和F11,進入VBA介面,點選單上的插入,模組,在新出來的視窗貼上一下程式碼:Sub crack()Dim i As LongDim FileName As Stringi = 0FileName = Application.GetOpenFilename("Excel檔案(*.xls & *.xlsx),*.xls;*.xlsx", , "VBA破解")FileName = Right(FileName, Len(FileName) - InStrRev(FileName, "\"))Application.ScreenUpdating = Falseline2: On Error GoTo line1Workbooks.Open FileName, , True, , iMsgBox "Password is " & iExit Subline1: i = i + 1Resume line2Application.ScreenUpdating = TrueEnd Sub然後在此介面直接按F5執行此宏,選擇檔案,等啊等(看密碼長度了)
如果Excel檔案的開啟密碼忘記了,且密碼是6位數以內的數字,可用以下步驟解開(關掉所有程式,為了速度):新開一Excel,同時按Alt和F11,進入VBA介面,點選單上的插入,模組,在新出來的視窗貼上一下程式碼:Sub crack()Dim i As LongDim FileName As Stringi = 0FileName = Application.GetOpenFilename("Excel檔案(*.xls & *.xlsx),*.xls;*.xlsx", , "VBA破解")FileName = Right(FileName, Len(FileName) - InStrRev(FileName, "\"))Application.ScreenUpdating = Falseline2: On Error GoTo line1Workbooks.Open FileName, , True, , iMsgBox "Password is " & iExit Subline1: i = i + 1Resume line2Application.ScreenUpdating = TrueEnd Sub然後在此介面直接按F5執行此宏,選擇檔案,等啊等(看密碼長度了)