Đây là hướng đi 1B:
Mã nguồn PHP:
Option ExplicitSub Huong1() Dim Rng As Range, sRng As Range Dim MyAdd As String Set Rng = Range([e1], [E65500].End(xlUp)) Set sRng = Rng.Find("Kính g", , xlFormulas, xlPart) If Not sRng Is Nothing Then MyAdd = sRng.Address Do sRng.Offset(, 1).Value = Cells(sRng.Row + 1, "A").Value Cells(sRng.Row + 1, "A").Resize(, 9).Value = "" Rows(sRng.Row + 1 & ":" & sRng.Row + 1).RowHeight = 0.5 Set sRng = Rng.FindNext(sRng) Loop While Not sRng Is Nothing And sRng.Address <> MyAdd End IfEnd Sub