An implementation of Visual Basic that is built into Microsoft products.
Hi @CamaDragon ,
Thanks, Marcin, for the solution above. Just adding a bit on top of it: if you insert the 32 rows at the active cell first, that cell gets pushed down, so the paste lands below the new rows. Save the row number before inserting:
Sub InsertBlockWithHeaders()
Dim ws As Worksheet
Dim src As Range
Dim startRow As Long
Set ws = ActiveSheet
Set src = ws.Range("B7:B38") '32 rows
startRow = ActiveCell.Row
ws.Rows(startRow).Resize(32).Insert
src.Copy Destination:=ws.Cells(startRow, "B")
Application.CutCopyMode = False
End Sub
Just make sure the selected row is below row 38. If you want the labels across a row instead, use PasteSpecial Transpose:=True.
If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide for your confirmation.
Thank you.