A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Yes there are several ways of doing that by finding the last used row in a column or worksheet and using that range. For example this finds the last row in column A
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
or if you want the last used row on a worksheet
LastRow = Cells.Find(What:="*", After:=[A1], _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious).Row
How you then set that up as a range depends upon what you're doing in you code but as a simple loop you can have
For x=1 to lastrow
next