Giải thích giúp mình mã ListObject.ListRows.Add AlwaysInsert
ActiveSheet.Unprotect
Range("A4").Select
Selection.End(xlDown).Select
Selection.ListObject.ListRows.Add AlwaysInsert:=True
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingColumns:=True, AllowFiltering:=True, _
AllowUsingPivotTables:=True
End Sub
Mình mới biết về marco đang định tạo marco để thêm dòng bên dưới. Mình xem thấy trong file của 1 bạn có đoạn mã trên. Chỉ có đoạn " Selection.ListObject.ListRows.Add AlwaysInsert:=True " mình không biết thao tác như nào để có được đoạn mã này. Ai biết chỉ giúp mình nhé.
Cảm ơn các bạn nhiều.
ActiveSheet.Unprotect
Range("A4").Select
Selection.End(xlDown).Select
Selection.ListObject.ListRows.Add AlwaysInsert:=True
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingColumns:=True, AllowFiltering:=True, _
AllowUsingPivotTables:=True
End Sub
Mình mới biết về marco đang định tạo marco để thêm dòng bên dưới. Mình xem thấy trong file của 1 bạn có đoạn mã trên. Chỉ có đoạn " Selection.ListObject.ListRows.Add AlwaysInsert:=True " mình không biết thao tác như nào để có được đoạn mã này. Ai biết chỉ giúp mình nhé.
Cảm ơn các bạn nhiều.
Lần chỉnh sửa cuối:



