Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default type mismatch

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

any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default type mismatch

thanks dave

"Dave Peterson" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Type Mismatch Brad Excel Programming 2 May 2nd 05 04:49 PM
type mismatch here! J_J[_2_] Excel Programming 2 March 14th 05 03:14 PM
Type mismatch teresa Excel Programming 1 December 14th 04 11:19 PM
Type mismatch Stuart[_5_] Excel Programming 4 February 19th 04 07:54 PM
Type Mismatch Edgar[_3_] Excel Programming 4 February 13th 04 03:55 PM


All times are GMT +1. The time now is 05:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"