insert rows in excel spreadsheet via macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to be able to insert a number into a column in an Excel Spreadsheet
and have that number of rows (copied from another row) entered following that
row.
 
With VBA

ActiveCell.Offset(1, 0).Resize(ActiveCell.Value).EntireRow.Insert
 
Thanks Bob - I really appreciate the prompt response! I need to be able to
go to a specific column (heading = Quantity). Based on the number entered, I
want to enter that number of rows immediately following this entry. I'm not
sure that a Macro is the right way to do this, and I can't find a command
that will do it. Any suggestions?

Thanks again,

Floyd
 

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

Back
Top