Adding a row

D

Don McNeil

Hello,
I need to add a row into my spread sheet after a specific
number appears in my spread sheet.

i.e. on Row 4 J10 = 6011
I would need a row added after Row 4

Thanks for your help.
Don
 
D

Don Guillett

modify to suit

Sub addafterfind()
x = InputBox("Number to find")
[a31:a40].Find (x)
Rows(x + 1).EntireRow.Insert
End Sub
 
E

emosko

Don Guillett said:
modify to suit

Sub addafterfind()
x = InputBox("Number to find")
[a31:a40].Find (x)
Rows(x + 1).EntireRow.Insert
End Sub

--
Don Guillett
SalesAid Software
Granite Shoals, TX
(e-mail address removed)
Don McNeil said:
Hello,
I need to add a row into my spread sheet after a specific
number appears in my spread sheet.

i.e. on Row 4 J10 = 6011
I would need a row added after Row 4

Thanks for your help.
Don
 

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