Sum Mulitple Passworded Workbooks

jtodd

Board Regular
Joined
Aug 4, 2014
Messages
194
HI , I have been asked to analyse some data , the problem is that it is in 52 files ( one for each week)
I know it would have been best to put all in one workbook but i did not design it and will be changing it)
All the workbooks are the same structure and all have the same password .

is there a way of removing the password from all in one go - or
is there a way of combining the data from the workbooks with out having to enter the password for each workbook- or
am i stuck with opening each one and saving without password ?

they are also still using exell 97 !!!!!!!!! ( will be updating to 2019 but have to work with this data for this year)
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi
Have a look at this might helps
 
Upvote 0
Give this a try
VBA Code:
Sub X_Pasw()
    Dim fDialog As FileDialog
    Dim wb As Workbook
    Dim fPath As Variant
    Set fDialog = Application.FileDialog(msoFileDialogFilePicker)
    With fDialog
        .AllowMultiSelect = True
        .Title = "Select the files for removing PSW"
        .Filters.Clear
        .Filters.Add "All supported files", "*.xlsm"    '<< change to suitable extention
        If .Show = True Then
            Application.DisplayAlerts = False
            Application.ScreenUpdating = False
            For Each fPath In .SelectedItems
                Set wb = Workbooks.Open(Filename:=fPath, Password:="YOUR PASSWORD")    '<< to be changed to...
                ActiveWorkbook.SaveAs Filename:=fPath, Password:="", WriteResPassword:=""
                ActiveWorkbook.Close savechanges:=True
            Next
        End If
    End With
    Application.DisplayAlerts = True
    Application.ScreenUpdating = True
    MsgBox "Job Done"
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,513
Messages
6,125,258
Members
449,219
Latest member
daynle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top