Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Version Incompatibility

I have a simple workbook with some code which includes the lines:

colb = Range("B:B")
nrows = Application.CountA(colb)

This has always been run under Excel 2003 where it works fine. However today
we ran the same code on Excel 2000 and the second line produces a type
mismatch error. Can anyone shed some light on this and provide an
alternative which will work under all versions?

Thanks

Ted


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Version Incompatibility

I am surprised it worked in 2003. Try

Set colb = Range("B:B")


--

HTH

RP
(remove nothere from the email address if mailing direct)


"JUnk" wrote in message
...
I have a simple workbook with some code which includes the lines:

colb = Range("B:B")
nrows = Application.CountA(colb)

This has always been run under Excel 2003 where it works fine. However

today
we ran the same code on Excel 2000 and the second line produces a type
mismatch error. Can anyone shed some light on this and provide an
alternative which will work under all versions?

Thanks

Ted




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
All-in-one printing incompatibility with EXCEL in landscape mode ccorley New Users to Excel 3 September 23rd 09 04:17 PM
Windows Vista and Excel 2000 -- incompatibility? Lindsay Graham Excel Discussion (Misc queries) 10 August 3rd 08 03:59 PM
Time for M$ to fix incompatibility with Office & Works Steve Garry Excel Discussion (Misc queries) 0 April 20th 06 09:10 PM
Excel 2000 v 2003 Macro & VBA Incompatibility Wboson Excel Programming 0 March 25th 05 09:13 PM
Incompatibility between Excel97 and Excel95 macros buczacz Excel Programming 2 December 29th 03 05:53 PM


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

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

About Us

"It's about Microsoft Excel"