How do I create a macro that will automatically input lines?

C

cporter

I am trying to create a macro that will delete lines based on a number that
is inputted in a particular cell. For instance if the number is cell A1 is
10 then input 10 rows for data.
 
B

Bob Phillips

Rows(10).Resize(Range("A1").Value).Delete

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
 

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