Hello,
I have to insert header row whenever there is a change in value in column A. I have more than 1000 records and it is very time taking activity to insert header row manually.
Sample data sheet has been attached. please help.
Hello,
I have to insert header row whenever there is a change in value in column A. I have more than 1000 records and it is very time taking activity to insert header row manually.
Sample data sheet has been attached. please help.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
Once i get these header inserted then I will use each table with header for sending letters to customers with these details.
FWIW:
![]()
Sub sayedzada() Dim i As Long For i = Range("A" & Rows.count).End(3).Row To 2 Step -1 If Left(Range("A" & i), 3) = "Cus" Then Rows(i).Delete Next i For i = Range("A" & Rows.count).End(3).Row To 2 Step -1 If Range("A" & i) <> Range("A" & i + 1) Then Rows(i + 1).Insert Rows(1).Copy Rows(i + 1) End If Next i Range("A" & Rows.count).End(3).EntireRow.Delete End Sub
Wow..... it is exactly what i want. thanks alot.
You're welcome. Glad to help out and thanks for the feedback. Please mark this thread as solved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks