G
Greg Rowland
Writing a macro to format a table of unknown length.
Need to find out how many rows/lines are between bookmark TOP and BOTTOM
so the values can be pasted to this statement
to satisfy NumRows;
Selection.ConvertToTable Separator:=wdSeparateByTabs, NumColumns:=6, _
NumRows:=7, Format:=wdTableFormatNone, ApplyBorders:=True,
ApplyShading:= _
True, ApplyFont:=True, ApplyColor:=True, ApplyHeadingRows:=True, _
ApplyLastRow:=False, ApplyFirstColumn:=True, ApplyLastColumn:=False,
_
AutoFit:=True, AutoFitBehavior:=wdAutoFitContent
Unless of course there is a better way.
Thanx in advance,
Greg
Need to find out how many rows/lines are between bookmark TOP and BOTTOM
so the values can be pasted to this statement
to satisfy NumRows;
Selection.ConvertToTable Separator:=wdSeparateByTabs, NumColumns:=6, _
NumRows:=7, Format:=wdTableFormatNone, ApplyBorders:=True,
ApplyShading:= _
True, ApplyFont:=True, ApplyColor:=True, ApplyHeadingRows:=True, _
ApplyLastRow:=False, ApplyFirstColumn:=True, ApplyLastColumn:=False,
_
AutoFit:=True, AutoFitBehavior:=wdAutoFitContent
Unless of course there is a better way.
Thanx in advance,
Greg