HELP PLEASE..Macro for rows

D

desperate in MS

I've search and search for an answer for this and no such luck.

Hope someone can HELP!!!!!

I have a excell speadsheet. Key data starts in "A10". I need something that
will automatically add/insert 3 rows once data is entered in "A10". Then when
data is again entered in "A13" (last row of the 3 added/inserted) I need 3
rows added/inserted and so on.
 
D

Don Guillett

Try this. Right click sheet tab>view code>copy/paste this.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row < 10 Or Target.Column <> 1 Then Exit Sub
Application.EnableEvents = False
Target.Offset(1).Resize(3).EntireRow.Insert
Target.Offset(4).Select
Application.EnableEvents = True
End Sub
 
D

desperate in MS

YOU ARE THE BEST...PERFECT....Showed my boss and that is exactly what he was
wanting....your the man
 
D

desperate in MS

One more thing....column "c11" is highlighted.."c12" not highlighted. Enter
data in "c11" and get my next line at "c13" (what I'm wanting)...now I want
"c13" to be highlighted but not "c12" or "c14"....highlight everyother row
that has data....right now it is highlighting all the rows...any suggestions?
 
D

desperate in MS

desperate in MS said:
One more thing....column "c11" is highlighted.."c12" not highlighted. Enter
data in "c11" and get my next line at "c13" (what I'm wanting)...now I want
"c13" to be highlighted but not "c12" or "c14"....highlight everyother row
that has data....right now it is highlighting all the rows...any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top