Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I am using the following code to count the no of entries in colA i sheet2 I am currently in sheet1 Sub check() Set myrange = Sheets("sheet2").Range(Cells(1, 1), Cells(4000, 1)) MsgBox Application.CountA(myrange) End Sub This gives an error as follows "run time error 1004 application or object defined error" but when I am in sheet2 and run this macro there is no error how to avoid this -- chandran1 ----------------------------------------------------------------------- chandran19's Profile: http://www.excelforum.com/member.php...fo&userid=1449 View this thread: http://www.excelforum.com/showthread.php?threadid=26121 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting data from sheet to sheet | Excel Discussion (Misc queries) | |||
Counting data in a range | Excel Worksheet Functions | |||
counting occurences in data range (e.g 31-60) | Excel Worksheet Functions | |||
counting cells in a data range that meet 3 specific conditions | Excel Discussion (Misc queries) | |||
Counting data in a range | Excel Discussion (Misc queries) |