A
Alan Z. Scharf
Hi,
1. I have a table with two columns and 30 rows.
2. The first column has only a CustomerID, and the second column has
several
paragraphs of descriptive text.
3. I need to get the Line Count of each individual second column cell and
put that number in a new third column for each row.
4. Hence, I need to
A. Loop through each CustomerID,
B. Highlight the text in its second column cell,
C. Get the line count for that cell, i.e. same number that's available
in Tools, Wordcount...dialog box, and
D. Write that number into the adjacent third column cell for each
CustomerID.
Is this possible to do with VBA in Word?
I need the line count for each text cell so that when I import this table
into SQLServer I can set the vertical size of a Report text box according
to
how many lines of text there are.
Thanks very much.
Alan
1. I have a table with two columns and 30 rows.
2. The first column has only a CustomerID, and the second column has
several
paragraphs of descriptive text.
3. I need to get the Line Count of each individual second column cell and
put that number in a new third column for each row.
4. Hence, I need to
A. Loop through each CustomerID,
B. Highlight the text in its second column cell,
C. Get the line count for that cell, i.e. same number that's available
in Tools, Wordcount...dialog box, and
D. Write that number into the adjacent third column cell for each
CustomerID.
Is this possible to do with VBA in Word?
I need the line count for each text cell so that when I import this table
into SQLServer I can set the vertical size of a Report text box according
to
how many lines of text there are.
Thanks very much.
Alan