What is the equivalent in MS Word for Row() function? - ms-word

I need an MS Word formula or field that returns the current row number within a table. something like the Row() function in Excel.

This answer was posted as a comment from macropod:
Word has nothing like Excel's Row() function. Perhaps you need to embed an Excel worksheet in your document. Alternatively, to see how to do a wide range of calculations in Word, check out my Microsoft Word Field Maths Tutorial, at: msofficeforums.com/word/… or gmayor.com/downloads.htm#Third_party

Related

How to show ISBN in MS Word Bibliography

Actually the question is in the title. I've read here MS Word Help but can't understand where to get a full list of possible fields. I use Russian Word, so the field name should be somthing like StandartNumber...
Just insert { %StandardNumber%}

MS Word: Carriage Returns in numbering format

in MS Word 2010, is it possible to include a manual line breaks in the formatting for a numbered list?
What I mean is I'm creating a style that includes numbering in a list. I'd like the list to appear like this:
Section 1[MLB]
Benefits
Section 2[MLB]
Drawbacks
etc.
I'm in the Define New Number Format dialog box, trying to find a way to include a manual line break in the Number Format field. I've got the word "Section" in there, but the line break is a problem so far. I've tried ^|, which is the search-and-replace code for manual line breaks. But that includes a literal carat followed by a pipe. Is there some other way of including things like paragraph breaks or line breaks in numbered lists? Thanks everyone.

Way to preserve formatting for lists when copy / pasting from table cell?

My Word interop application needs to get content out of a cell of a table in a word document. The problem is, that the formatting for some items seems broken. For example the last item of a list does not have the list style applyied. Headings are only normal text etc.
The same happens if you create a table, create a list in the table and try to copy / paste the list to somewhere else.
Has anyone else had this problem and maybe found a solution? Is there any way to trick word into giving the correct formatting?
Thanks in advance
Example code
Range range = cell.range;
range.MoveEnd(WdUnits.wdCharacter, -1);
...
range.FormattedText.copy()
The range includes the end-of-cell marker which should not be exported. I just noticed, when not altering the range, list are correctly formatted but the whole cell is exported as a table, which is bad because i want to import the content into another document (where this would nest tables infinitly)
Word2010 v14.06.6112.5000

How to extract all footnotes from a MS Word file?

Is there a generic (Macro, XML Parser, ...) way to extract all footnotes in a MS Word file and also keep the corresponding number from the original text?
You might use Elod Pal Czirmaz's macro as a starting point. I suspect that footnotes don't carry their numbers with them. When the document is rendered, the numbers are just assigned in order.

Crystal Reports Formula to parse RTFtext based on font format ie Bold and Italic

I have a column of RTF data that looks like the following:
The terms or definitions to be used in this document are:
Daily Operator. Used when the user is.......etc..
Using crystal reports I would like to grab just the BOLD text using a formula or equivalent.
I keep getting the RTF markup instead of standard text. Here is an example that I used to grab first 10 characters.
DIM convertedText as String
convertedText = cstr({table.DefinitionRTF})
FORMULA = MID(convertedText, 1, 10).
Looking ahead a bit more, how would one determine where the bold or italic Starts. Can you check for crBOLD and return the characters index position?
Thanking all in advance.
No, Crystal does not have the built-in commands to parse RTF objects by font properties. The purpose of Crystal Reports is to present formatted reports (and it more or less does this job very well). Sorry, but it's definitely not made to be a RTF parser.
I recommend doing this with some other tool, for example, a VBA script in MS Access that imports the RTF and parses it using the MS Word API. Probably wouldn't be that difficult.