Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Maddening Dilemma - Compare each cell within column a to each cell in column b and find unique matches | Excel Worksheet Functions | |||
Find cell address of last cell in a column with text | Excel Worksheet Functions | |||
Find max value in one column and return the value of corrosponding cell in different column | Excel Worksheet Functions | |||
find first empty cell in column and start transpose next row in that cell | Excel Discussion (Misc queries) | |||
Find First Non blank cell than find column header and return that value | Excel Worksheet Functions |