select above

  • Thread starter Thread starter Kari
  • Start date Start date
K

Kari

is there a way to request that excel select all the rows
above the active row? For instance, if row 5 is the
currently selected row, excel would select rows 1 through
4.

Thanks

kari
 
Hi kari
try
....
if activecell.row > 1 then
range(rows(1),rows(activecell.Row-1)).Select
end if
 
Untested, but I think something like
range("a1":Cells(Selection.row-1, selection.column).select

Should do it
 

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