Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to count the cells in a table row ?
Hi,
Does anyone know how to count the cells inside a table row ? I already tried the following but, (because of merged cells), doesn't work all the time. Is there an other way to count the cells in a row? The following two methods doesn't work all the time: iCount = Tables(1).Rows(1).Cells.Count or Dim oCell as Cell Set oCell = Tables(1).Cells(1,1) Do Until oCell.RowIndex = 4 oCell.Next iCount = iCount + 1 Loop -- Alex St-Pierre |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to count the cells in a table row ?
Oopss.. sorry, this message was for Word.Programming
I will post it there.. -- Alex St-Pierre "Alex St-Pierre" a écrit : Hi, Does anyone know how to count the cells inside a table row ? I already tried the following but, (because of merged cells), doesn't work all the time. Is there an other way to count the cells in a row? The following two methods doesn't work all the time: iCount = Tables(1).Rows(1).Cells.Count or Dim oCell as Cell Set oCell = Tables(1).Cells(1,1) Do Until oCell.RowIndex = 4 oCell.Next iCount = iCount + 1 Loop -- Alex St-Pierre |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to count#cells w/= value in other column and not count blank c | Excel Worksheet Functions | |||
count cells in a table that meet multiple criteria | Excel Worksheet Functions | |||
Count cells to left in a table | Excel Discussion (Misc queries) | |||
Getting a pivot table to show the count of blank cells in a worksh | Excel Discussion (Misc queries) | |||
How do I make excel pivot table count blank cells? | Excel Worksheet Functions |