I have a sheet of several pages from report where I concatenate page and page no from column H and I to column A .
Actually doing this manually
Looking for a vba solution
I have a sheet of several pages from report where I concatenate page and page no from column H and I to column A .
Actually doing this manually
Looking for a vba solution
This should do
![]()
Sub test() Dim r As Range, ff As String Set r = Columns("h").Find("page number:", , , 1) If Not r Is Nothing Then ff = r.Address Do r(, -6).Value = r.Value & r(, 2).Value Set r = Columns("h").FindNext(r) Loop Until ff = r.Address End If End Sub
Try:![]()
Sub JoinCells() Application.ScreenUpdating = False Dim sAddr As String Dim foundVal As Range Set foundVal = Range("H:H").Find("Page Number:", LookIn:=xlValues, lookat:=xlWhole) If Not foundVal Is Nothing Then sAddr = foundVal.Address Do Range("A" & foundVal.Row) = foundVal & foundVal.Offset(0, 1) Set foundVal = Range("H:H").FindNext(foundVal) Loop While foundVal.Address <> sAddr sAddr = "" End If Application.ScreenUpdating = True End Sub
You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
Practice makes perfect. I'm very far from perfect so I'm still practising.
jindon & Mumps1 thank you both for solution provided
Worked as requested
Glad it worked out.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks