range selection

  • Thread starter Thread starter ksnapp
  • Start date Start date
K

ksnapp

hi

here is what I tried

Sub asdf()

Rw = Cells(Rows.Count, 5).End(xlUp).Row
Range("E2", Rw).Select
MsgBox (Rw)

End Sub

what i want it do is select cells from E2 down to the last populate
cell in E. is that possible

I need this to plug into a sub that used a "for each cell in selection
routin
 
Hi
try
Sub asdf()
Dim rw
rw = Cells(Rows.Count, 5).End(xlUp).Row
Range("E2", Cells(rw, 5)).Select
MsgBox (rw)

End Sub
 

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