'Run along the rows in Excel
I have new entries that go into the Excel table and I constantly want to run to the last row number but it does not work
excel.Row.Count() this the problem
for (int i = 0; i < excel.Row.Count(); i++)
{
if (excel.ReadCall(i, 1).Equals(emailLogin.Text))
{
MessageBox.Show("WELCOME");//to meassege excel
break;
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|