Forum Discussion
lars_kralemann
12 years agoNew Contributor
Hi again!
Here are a piece of code:
Sub Testrun
projDataPath=ProjectSuite.Variables.VariableByName("projData_path")
ExcelDriverPath = projDataPath+"DB_Chk_Combination1.xls"
Call DDT.ExcelDriver(ExcelDriverPath,"Sheet1")
While Not DDT.CurrentDriver.EOF Aliases.CardDesigner.editors.TagValue.coBox_Combination.ClickItem(DDT.CurrentDriver.Value("Combination"))
Call DDT.CurrentDriver.Next()
Wend
DDT.CloseDriver(DDT.CurrentDriver.Name)
End Sub
The error occurs when calling "Call DDT.ExcelDriver(ExcelDriverPath,"Sheet1")". The pathes are correct, I checked it several times!
Regards
Lars
Here are a piece of code:
Sub Testrun
projDataPath=ProjectSuite.Variables.VariableByName("projData_path")
ExcelDriverPath = projDataPath+"DB_Chk_Combination1.xls"
Call DDT.ExcelDriver(ExcelDriverPath,"Sheet1")
While Not DDT.CurrentDriver.EOF Aliases.CardDesigner.editors.TagValue.coBox_Combination.ClickItem(DDT.CurrentDriver.Value("Combination"))
Call DDT.CurrentDriver.Next()
Wend
DDT.CloseDriver(DDT.CurrentDriver.Name)
End Sub
The error occurs when calling "Call DDT.ExcelDriver(ExcelDriverPath,"Sheet1")". The pathes are correct, I checked it several times!
Regards
Lars