Set StartRange and End Range

R

ryguy7272

I am trying to get Excel to select all the cells between Cell A3 and the last
used cell in Column A.

Code below:
Dim StartCell, EndCell As Range
Set StartCell = Range("A3")
Set EndCell = Cells(Rows.Count, "A").End(xlUp)
Range("StartCell:EndCell").Select

What am I doing wrong?

Thanks,
Ryan---
 
G

Gary''s Student

Sub zeroo()
n = Cells(Rows.Count, "A").End(xlUp).Row
Range("A3:A" & n).Select
End Sub
 
D

Dave Peterson

Range(StartCell, EndCell).Select
I am trying to get Excel to select all the cells between Cell A3 and the last
used cell in Column A.

Code below:
Dim StartCell, EndCell As Range
Set StartCell = Range("A3")
Set EndCell = Cells(Rows.Count, "A").End(xlUp)
Range("StartCell:EndCell").Select

What am I doing wrong?

Thanks,
Ryan---
 

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

Top