Boa noite
Dá erro no sublinhado, grato.
Att.,
RM
Option Explicit
Sub teste()
Dim plan As Object
Dim UltimaLinhaRow As Long
For Each plan In ThisWorkbook.Sheets
If Left(plan.Name, 2) = "20" Then
ThisWorkbook.Worksheets(plan.Name).Activate
UltimaLinhaRow = Cells(Rows.Count, 1).End(xlUp).Row
Cells(UltimaLinhaRow + 1, 1) = Me.txt_paroquiano_Add.Text
Cells(UltimaLinhaRow + 1, 2) = Me.TextBox3.Text
End If
Next plan
End Sub
Postado : 31/01/2018 5:20 pm