Insert row code

  • Thread starter Thread starter glenn
  • Start date Start date
G

glenn

Hi all

what's the VBA command to insert a row in a worksheet?

Worksheets().Rows().InsertRow ?



thanks
 
Gary: When using Rows you don't need to use entirerow. It can simply be
worksheets("sheet1").rows(3).insert

entirerow or entire column is only need when you don't have the whole row or
column such as Range("A1:C1") or cells(5,"C")
 
thanks, i usually use the entirerow.insert so when i'm reviewing code it's easy
to see it's inserting a row. i've never heard of it causing a problem, it's just
for visual purposes.
 

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