I am applying some conditions using the 'if else' loop for all the entries in the spreadsheet using the 'For' loop.
As a last condition I want to see if the required file number does not exist in the file, it should print some error msg.
-
if I put it as an 'else condition' it pops up again and again when it loops through each entry in the spreadsheet due to 'For' loop.
-
if I use 'exit for' statement, then it exits the loop just after looking into first entry
-
If I try to code it outside the for loop, then it pops up even though we get data for the search box.
I know I am missing some silly trick.

Aucun commentaire:
Enregistrer un commentaire