Function GetDatasource()
'Looks up the datasource
Dim x
Dim s As String
sDatasource = Application.Evaluate("=vlookup(""" & Thisworkbook.Sheets("Settings").Range("datasource_type") & """,[" & ThisWorkbook.Name & "]Settings!A:B,2,False)")
GetPsw
sDatasource = Replace(sDatasource,"@psw", gPsw)
sDatasource = Replace(sDatasource,"@user",gUserId)
GetDatasource = sDatasource