The code below identifies the last active row of the worksheet.
When column A is populated manually it works. But when I put a formula to fill that column according to another worksheet. The code does not stop.
For example: the spreadsheet has data up to line 46, but execution only for when it arrives at line 78, as far as I've dragged the formula.
lUltimaLinhaAtiva = Worksheets("Painel").Cells(Worksheets("Painel").Rows.Count, 1).End(xlUp).Row