You could do it like this with the workbook name in column A and the password in column B:
Sub PrintWorkbooks()
Dim cell, rng As Range
Dim wb_loc, wb_name, wb_ext, wb_pw As String
Dim wkbk As Workbook
wb_loc = "C:\temp\Test\"
wb_ext = ".xlsx"
Set rng = Range("A2:A" & Range("A" & Rows.Count).End(xlUp).Row)
For Each cell In rng
wb_name = cell.Value
wb_pw = cell.Offset(0, 1).Value
Set wkbk = Workbooks.Open(Filename:=wb_loc & wb_name & wb_ext, Password:=wb_pw)
'wkbk.Sheets(1).PrintOut Copies:=1 (Set what you want to print)
wkbk.Close SaveChanges:=False
Next cell
End Sub
Bookmarks