The following line is throwing error message " value does not fall within expected range "
Using Site As New SPSite(SitePath)
Using Web As SPWeb = Site.OpenWeb()
Dim CalendarList As SPList = Web.Lists(NameOfList) ''''' throws error
tha value of NameOfList is 'Project%20Calander'
the url of the list is 'http://dev/working/landing/testsite/Lists/Project%20Calendar/calendar_copy(1).aspx'
Its the correct name of the list so not sure what as it could be expecting?
View Complete Post