2
Using Visual Basic Excel mode, I am creating a customer registration form. It has a button called "new". On this button it would add a value to the Code field that is in the excel spreadsheet. However, when I test it presents the following message:
Runtime error '9': Subscribed out of range
And when I click on debug, it points to the following line of code as 'wrong'':
Do Until Sheets("CLIENTES").Cells(linha, 1) = ""
What should I do to solve this problem?
What is the value of
linha
? Hover over variable while debugging– bfavaretto