ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Select all but header row??? (https://www.excelbanter.com/excel-programming/373999-select-all-but-header-row.html)

Meltad

Select all but header row???
 
Whats the macro code to select all cells except row 1????

Dave Peterson

Select all but header row???
 
with activesheet
.rows("2:" & .rows.count).select
end with

is one way.

Meltad wrote:

Whats the macro code to select all cells except row 1????


--

Dave Peterson

PCLIVE

Select all but header row???
 
One way.
Maybe this:

Range("A2:IV65536").Select


Paul

"Meltad" wrote in message
...
Whats the macro code to select all cells except row 1????




Charles Chickering

Select all but header row???
 
Range("A2",Cells(Range("A2").End(xlDown).Row,Range ("A2").End(xlToRight).Column).Select

HTH
--
Charles Chickering

"A good example is twice the value of good advice."


"Meltad" wrote:

Whats the macro code to select all cells except row 1????


Alok

Select all but header row???
 
You have already got so many options. Why not one more?

Sheet1.Cells.Resize(Sheet1.Rows.Count-1).Offset(1).Select


"Meltad" wrote:

Whats the macro code to select all cells except row 1????


Meltad

Select all but header row???
 
THANKS ALL!!!


"Dave Peterson" wrote:

with activesheet
.rows("2:" & .rows.count).select
end with

is one way.

Meltad wrote:

Whats the macro code to select all cells except row 1????


--

Dave Peterson



All times are GMT +1. The time now is 08:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com