Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to display number of row of my table at Top left conner ?

Hi All

I hv a table , and i like to display number of row on Top left conner.

Paul

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Hi Paul,

I thought that the solution would be easier. But your's is a bit complex. I got it using a macro and variable. See attached solution.

Sub CountRow

set chart = ActiveDocument.GetSheetObject("CH230816")
set v = ActiveDocument.Variables("RowsNum")
v.SetContent chart.GetNoOfRows,true

End Sub


Cheers.

View solution in original post

14 Replies
Not applicable

Hi Paul,

PFA

-- Rajendra

Not applicable

='Total Number of Row = ' & count(PART_NO_)

Sokkorn
Master
Master

Paul,

Did you try expression in Window Title yet?

='Total Number of Row =' & Count(PART_NO_)

Rgds,

Sokkorn

tresesco
MVP
MVP

PFA

Update: Count( Distinct PART_NO_)

Not applicable

Hi Paul,

Please find attachment and see the answer where you want.

Garry

paulyeo11
Master
Master
Author

Hi All

Thank you for the reply. but my PART_NO_ some have missing value , may i know how to count those with missing value ?

Paul

Not applicable

are you asking abount missing means NULL values??

Not applicable

Hi Paul,

Request you to add one list box of PART_NO_ which shows you that there is no missing value. That missing values comes from your expression.

Garry

paulyeo11
Master
Master
Author

value same.png

SEe the image above. notice the row count and part number count are diff.