Version 1:
When I open a document in WOrd 2010, there is a button on the ribbon to change the paragraph (or is it the lines in a paragraph?) spacing from "normal" to "no spacing".
What is the automation equivalent of this button?
Version 2:
I have this line of code in my vb.net project that automates Word:
wordApp.Selection.ConvertToTable(NumColumns:=2)
This does not produce the exact same result as my doing Convert To Table in the regular app because the line spacing is different. When I do it in Word, the line spacing appears to go to No Spacing, but using Automation there is still space between the lines.
How do I make the automated version look like the manually create version?
Why are the two versions different?
Thanks.
ASKER
Fantastic!
Actually it is one question approached from two angles. The first question is how do I make it work and your solution is perfect.
The related question is why do I have to do this when automating, but not have to change the spacing (via the ribbon) when just using Word as an application? It seems like the ConvertToTable method is not behaving exactly the same as the Convert Text to Table functionality in the app. Can anyone verify or explain this?
Can you shed some light on this? I hope to understand this just a bit better and on Monday I will award the points.
Thanks!