Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have used the following for a while:
Function lcell(col As Integer) As Long Dim lastcell As Range Set lastcell = Cells(Rows.Count, col).End(xlUp) lcell = lastcell.Row End Function =lcell(1) is supposed to return the row number of the last used cell in column A. Today I discovered the code ignores row 65536; so if A65536 is occupied, another cell in column A is being returned. Why? -- Gary''s Student |
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 | |||
Sum Cell Values of one column based on Another Cell Value in a different column | Excel Worksheet Functions | |||
compare cells in column to criteria, then average next column cell | Excel Worksheet Functions | |||
Loop through column headers to search from column name and get cell range | Excel Programming | |||
Format cell in column B based on value in the next cell (column c) | Excel Discussion (Misc queries) |