Thread
:
Find last used cell in an column
View Single Post
#
2
Posted to microsoft.public.excel.programming
William[_2_]
external usenet poster
Posts: 227
Find last used cell in an column
Hi
MsgBox Range("A" & Rows.Count).End(xlUp).Address
or
Range("A" & Rows.Count).End(xlUp).select
--
XL2002
Regards
William
"Niklas" wrote in message
...
| Hi
| What is the best way of finding the last used cell in a
| column?
| At the moment i use:
|
| While Len(i_workSheet.Range(i_sColumn & CStr
| (i_iIndex)).value) 0
| i_iIndex = i_iIndex + 1
| Wend
|
| GetLastUsedRowInColumn = i_iIndex
|
| Yours sincerly
| /Niklas
Reply With Quote
William[_2_]
View Public Profile
Find all posts by William[_2_]