View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
kkknie[_99_] kkknie[_99_] is offline
external usenet poster
 
Posts: 1
Default Macro Error When Sorting

Yes. Just test this condition and do whatever you would do if there wa
no data in that column:

If Cells(1, MyColumn).End(xlDown).Row = 65536 Then

'Do something

Else

'Your original code

End I

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