View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Tom Urtis[_2_] Tom Urtis[_2_] is offline
external usenet poster
 
Posts: 1
Default Excel VBA - UsedRange problem

UsedRange is unreliable, as is SpecialCells LastCell. Try this:

Dim LR As Long
LR = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows,
SearchDirection:=xlPrevious).Row
MsgBox LR


---
Message posted from http://www.ExcelForum.com/