hi,
i want to select the last cell that has data and then move down one row, i made this macro, but it's not working, it won't go down one cell once it has selected the last row that contains data:
Selection.End(xlDown).Select Range(Selection, ActiveCell.Offset(1, 0)).Select Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select Selection.ClearContents
Last edited by indep; 07-14-2008 at 03:15 PM.
Thanks for wrapping your code
Try
VBA NoobDim LastCell As String LastCell = Cells.Find(What:="*", After:=[A1], SearchDirection:=xlPrevious).Address Range(ActiveCell, LastCell).ClearContents
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks