Barry,
It is:
="$A$3"&":"&ADDRESS(MATCH(1E+30,A:A),COLUMN(A1))
Caveat: the row number of the last cell must be at least 3.
Aladin
==========
I can't get this to work, I would guess it's something to do with my syntax since I know nothing of VBA, can you help?
'Calculates last used cell in column A and copies it
Sheets("results").Select
Range("d2").Select
ActiveCell.Formula = "=address(match(1e+30,a:a),column(a1)) "
Range("$A$3"&":"&address(match(1e+30,a:a),column(a1))).Select
Selection.Copy
Barry try
'Calculates last used cell in column A and copies it
Sheets("results").Select
Range("d2").Select
ActiveCell.Formula = "=address(match(1e+30,a:a),column(a1)) "
Range("$A$3:" & ActiveCell.Text).Select
Selection.Copy
Ivan
Sheets("results").Select Range("d2").Select ActiveCell.Formula = "=address(match(1e+30,a:a),column(a1)) " Range("$A$3"&":"&address(match(1e+30,a:a),column(a1))).Select Selection.Copy
That works fine, thanks again
Ivan Thanks. Feel relieved. Would you also look at Phil's problem which also needs VBA.
Aladin
Sheets("results").Select Range("d2").Select ActiveCell.Formula = "=address(match(1e+30,a:a),column(a1)) " Range("$A$3"&":"&address(match(1e+30,a:a),column(a1))).Select Selection.Copy
Aladin Sheets("results").Select Range("d2").Select ActiveCell.Formula = "=address(match(1e+30,a:a),column(a1)) " Range("$A$3"&":"&address(match(1e+30,a:a),column(a1))).Select Selection.Copy