View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default Trying to select rows

Why not do it all in one line since you have the range objects anyways...

Range(relativCell.Offset(k, 0), relativCell.Offset(j, 0)).EntireRow.Select
--
HTH...

Jim Thomlinson


"Arne Hegefors" wrote:

Ok i have a problem that I dont understand. I guess its easy if you know it
but I dont and its really bugging me..I try to select several rows by writing:

startRow = relativCell.Offset(k, 0).Row
endRow = relativCell.Offset(j, 0).Row

Rows(startRow, endRow).Select

this is obviously wrong but how do you write it? The two first lines are
correct but the line RoWs(.....).Select is faulty inside the parenthisis.
Please help me out if you know this!!!