Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel: .End(xlUp) doesnt work correctly 1

Status
Not open for further replies.

waldemar

Programmer
Nov 15, 2001
245
DE
Hm, still working on the problem...

later in the program I try to loop through a range that depends on the last entry-row of locPort.column (most of the times Column B).

The following llop returns no row at all though there is content in the cells (and it worked some time before. My assumption is that there is something wrong the End(xlUp) thing... but I have no clue... anybody???

(locPort is just a range containing a header cell)

For intRow = 1 To locPort.Cells(65000, locPort.Column).End(xlUp).row






 
Change it to

For intRow = 1 To Cells(65000, locPort.Column).End(xlUp).row



Rob
[flowerface]
 
Answered in original thread with exactly the same response Rgds
~Geoff~
 
Of course... the sheet instead of the reference cell... thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top