Please copy-paste the below code. -LPV suggested the same - I am just elaborating more.
Set App = CreateObject("QuickTest.Application")
If App.Test.Settings.Run.IterationMode = "rngIterations" Then
If (App.Test.Settings.Run.EndIteration = 1) AND (App.Test.Settings.Run.StartIteration = 1) Then
MsgBox "Run One Iteration Only"
MsgBox "Run From row "&App.Test.Settings.Run.StartIteration& " To row "& App.Test.Settings.Run.EndIteration
MsgBox " Run ON All rows"
"I realize it's an error, but no one is going to try to do that!"
From "Top 10 Stupid Comments from Developers".
LPV, How do I get the GerROProperty of the "Data Table Iterations" which is in the Test Settings > Run tab?
chillyhouse52556, how do I solve the problem from your given example if I had selected the radio button to 'Run on all rows" ?
For example, if i had selected the radio button to 'Run from row 4 to row 9' and next time if choose to 'Run on all rows', the value for App.Test.Settings.Run.StartIteration will still read as 4. This is wrong.
If I could know the GetROProperty of the radio button, my problem will solved.