I have a userform that copies a worksheet that contains a table. I need the next userform to transfer inputted data. The problem I am having is that when the new worksheet is copied, the name of the table changes.
How can I change the below to find the only table on the worksheet and input the data?
How can I change the below to find the only table on the worksheet and input the data?
Code:
With ActiveWorkbook.ActiveSheet.ListObjects("Table3")
lrow = .ListColumns(1).Range.Rows.Count
.DataBodyRange.Cells(lrow, 1).Value = "Active"
.DataBodyRange.Cells(lrow, 2).Value = Me.GName.Value
End With