Insert blank row for each full row
Hello all!
I have another request for help.
Our accountant would like to insert a blank row in a spreadsheet for each row with data currently filled out. She want's the new row inserted under the row containing data.
Now I can write:
Code:
Range( _
"2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18").Select
Range("A18").Activate
Selection.Insert Shift:=xlDown
but that is ugly and not to mention tedious - so I need a For Each statement that will check to see if a row has data then
Code:
Range("x:x").Select
Selection.Insert Shift: = xlDown
where x = numer of the row with data on it...Should work,
Any suggestions?