If there are gaps in the data, this approach may not work.
Try:
Cells(ActiveCell.Row, Columns.Count).End(xlToLeft).Select
Yes, the coding below (activecell.end(xltoright)) didn't work as there
are gaps in the row. Not each cell has information in this contact
list spreadsheet has information in it, nor will it ever, as not
everyone has info to be used (i.e., not everyone has or has provided a
cell phone # or email, for example, so these cells remain blank <g>. )
The code above works very well, it's pretty neat. However, if there
is nothing in the last cell(s) in the row I'm in, it scoots back to
the first cell in that row. Or, if there is information in that row,
it goes to the last item of text in it, only. I've found that since
that is the case, I need to refine the definition of what I need <g>.
So, it really means that one needs to go to the last cell of the row
I'm working in _whether_or_not_ there is any data after the text in
the actual cell I'm in. The whole purpose of this macro is to go to
that last cell of the row in order to type in data, since this cell in
particular _always_ needs info in it. It's out of the way way at the
end of the row but that also was on purpose as it may or may not be
needed for printing (if not in print range, I'll live with the macro
taking me to the last cell in the print range, which means the one
just before this last cell if we have to have it out of print range
but there to help manipulate data). It's because this cell is a
definition cell for sorting later on as it describes the region the
person in the contact list is in so it provides a necessary bit of
information.
Thanks so much!