

You will love knowing that it is very easy to achieve this Read on and we will tell you how you can unlock VBA password Excel macros.Īs we are well aware, Excel is a Microsoft Office program that allows us to perform a wide variety of assignments quickly and easily. The only solution is to unlock or remove password which you no longer remember. We renamed Interceptor.dll to OWSSUPP.Imagine you have an Excel workbook with password protected VBA projects and you forgot which one it is.HKEY_CLASSES_ROOT\Wow6432Node\CLSID\\InprocServer32 We also went to the registry and followed the path.We went to Control Panel > Credential Manager > we removed all "Microsoft Office16" credentials.In Internet Options > click on Advanced > select the "Use SSL 2.0" and "Use SSL 3.0" certificates > OK.Logon with current username and password " > OK

Open password protected vba project excel code#
The exact same VBA code able to detect that I am already signed into cloud and didn't ask me for credentials again and was able to fetch the data from password protected Excel sheets stored in cloud. Today we had a conference call with our Office 365 migration team and Microsoft Support Engineer and issue is now fixed with no changes to the VBA code (only changed the path of-course to point to the new sharepoint path in cloud). The error might be because the "Workbooks.Open" didn't execute successfully, it didn't also ask for all the dialog boxes etc.Īppreciate any guidance, if there is a way to use VBA Macros to connect to cloud and open "password protected" Excel Workbooks. Set PayPeriod = wbkProtected.Worksheets(RptMonth & MonthPart).Range("S7:S7") "Run-time error '9': Subscript out of range". (b) It does seem to accept credentials, but gives Macro error on the line following the "Workbooks.Open" (the line shown below). (a) Asks for Office-365 cloud credential again Other workbooks using the above "Workbooks.Open" then: But when we run macro to gather data from After these diaglog boxes, the summary sheet opens fine in desktop excel. Due to "password protection" feature Office-365 can't open it online so it givesĪ dialog box asking to open it in Desktop Excel and then some additional messages and finally a dialog box for Office-365 credentials again.

This has been working fine so far until we migrated to Office-365. Set wbkProtected = (Filename:=WorkBookPath, Password:=WorkbookPW, UpdateLinks:=False, ReadOnly:=True) VBA code basically uses the "Workbooks.Open" construct supplying it with the password and path (password/path picked from within Summary Workbook itself). One of these workbook (called "Summary Workbook") uses VBA code to gathers data from other workbooks in the SharePoint Library (all workbooks password

In our SharePoint site, we have Password Protected Excel Workbooks in a Library.
