'path is the path of axcel file
'sheet is the sheet ID of excel file
'A is the column name in excel file
set inputdata = DDT.ExcelDriver(path,sheet)
name = inputData.value("A")
In case if it does not exists then, it will trough an error/exception. You can handle it versy easily by using &"" with the string.
set inputdata = DDT.ExcelDriver(path,sheet)
name = inputData.value("A") &"" 'this will add nothing but will remove the exception you are getting.
No comments:
Post a Comment