Chance1234
IS-IT--Management
I have a bit of code that looks somethign like this
What Im doing is going through a folder of excel spreadsheets and then looping through the link sources
all fine and dandy
except for spreadsheets which are password protected , I need to open the workbook to get the link info, but is there any way of finding out if a excel workbook is password protected without opening it ?
Chance,
F, G + Its official, its even on a organisation chart et all
Code:
XL = XL2.Workbooks.Open(strFolder & "\" & strFileName, False)
alinks = XL.LinkSources
If Not IsEmpty(alinks) Then
For n = 1 To UBound(alinks)
..........
What Im doing is going through a folder of excel spreadsheets and then looping through the link sources
all fine and dandy
except for spreadsheets which are password protected , I need to open the workbook to get the link info, but is there any way of finding out if a excel workbook is password protected without opening it ?
Chance,
F, G + Its official, its even on a organisation chart et all