How to open a password protected file
Posted on 2013-01-28
I have a excel file to create reports from different sheets of the excel workbook and some infromation from an external worksheet.
But the external worksheet is password protected therefore, each time excel refresh data in every 20 miniutes try to open the extarnal excel sheet every its stop there to choose as read only. Is there any way to bypass this message while open the external excel worksheet.
I wrote as below but still stopped "Enter password for write access,or open read only"
Set wb_Source = xl.Workbooks.Open(FileName, IgnoreReadOnlyRecommended:=True)
Please advise how bypass this message while opening password protected worbook to get some information.