How do I select the first row of a table

  • Thread starter Thread starter John
  • Start date Start date
J

John

What macro code do I use to select the entire i-th row of a table?

Application.Goto Reference:="TableA" selects the entire table, but I just
want a specific row selected.

Thx for your help, John
 
Hi John

A real Table in Excel 2007 or a range named TableA ?

For a range use

Range("TableA").Rows(1).Select

If it is Excel 2007 Table this will select the first data row (row(2)
 
Hi

With Headers in row 5 try this:

Rows(5+i).select

Or maybe

Range("TableA").cells(1,1).offset(i,0),select

Hopes this helps.
 

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