I have two tables side by side. Each table has four columns. One of the tables contains more data rows than the other (but the rest of its data is identical to the short one). I need to insert rows just in the short table to move data rows down so the data in the short table matches the data in the long table.
It's easy enough to do "by hand": highlight the four cells that need to be "pushed down", press insert, and select "shift down".
I want to do this by selecting just the first cell in the short table row and running a macro to do the rest.
I am unable to create the correct code to make the four cell selection.
This is the code obtained by manually creating a macro:
'Select the Range
Range("E187:H187").Select
'Insert and move the rest down
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
What I need is the correct code to replace the selection (line 2) so that it is generic (works in any row)
Thank you for this opportunity to obtain help
Bookmarks