Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have the following code: Code ------------------- Dim numPet As Integer Dim sel ' what kind of object is this... so i can use count... "range", "application.selection" don't work Worksheets("Datos").Activate sel = Excel.Range("A4", Excel.Range("A4").End(xlDown)).Select numPet = sel.Rows.Count ------------------- and I need to count the number of rows selected. as there will be n blank cells counting like this should be fine. but i don't know what kind of objec "sel" needs to be. btw. any idea on how to apply a filter (select only cell containing certain string) on the selection -- Acid-Sk ----------------------------------------------------------------------- Acid-Sky's Profile: http://www.excelforum.com/member.php...fo&userid=2650 View this thread: http://www.excelforum.com/showthread.php?threadid=39806 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
dialog box selection type | Excel Discussion (Misc queries) | |||
Object Selection | Excel Discussion (Misc queries) | |||
Copy Selection - Transpose Selection - Delete Selection | Excel Discussion (Misc queries) | |||
Object Variable Not Set Error on Selection object | Excel Worksheet Functions | |||
How to find what object type is returned from Selection property ? | Excel Programming |