Thread: type mismatch
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default type mismatch

I bet you want the row number:

rw2 = Sheets("NI").Range("A9").End(xlDown).row + 1

If you leave off .row, then excel assumes you want the .value (and who knows
what that might be).



John wrote:

i get a type mismatch error in the following line; rw2 =
Sheets("NI").Range("A9").End(xlDown) + 1

any ideas?


--

Dave Peterson