Opens the workbook named Plan.xls stored in the D:\Planning folder, providing the password for opening the workbook
Sub pass() Workbooks.Open Filename:="D:\Planning\Plan.xls", Password:="s@cur1ng!" End Sub