Does anyone know how I can get the following to work?
VB.NET doesn't seem to like to apply borders unless you are dealing with a table although the VB macro editor seems to suggest this is the right way to do this.
.LineStyle = objWord.Options.DefaultBorderLineStyle
.LineWidth = objWord.Options.DefaultBorderLineWidth
.Color = objWord.Options.DefaultBorderColor
VB.NET chokes on trying to pass wdBorderBottom as an index to .Borders
The following does work in Word so I don't get what the difference is when I switch to building a word file in VB.NET
.LineStyle = Options.DefaultBorderLineStyle
.LineWidth = Options.DefaultBorderLineWidth
.Color = Options.DefaultBorderColor