Selecting a Row : Document Table « Word « VBA / Excel / Access / Word
VBA / Excel / Access / Word
Data Type Functions
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
VBA / Excel / Access / Word
Selecting a Row
Related examples in the same category
inserts a new, blank, non-autofitting table containing 10 rows and 5 columns at the current position of the insertion point in the active document:
Selecting a Table in the active document:
Declare the variable tempTable and then select the first table in the document named Log.doc and assign its Range object to tempTable
Selects the first table in the current selection:
Converts the current selection to a five-column table, separating the information at commas.
Making Sure the Selection Is within a Table
Finding Out Where the Selection Is in the Table
Adding a Column to a Table
Deleting a Column from a Table
Setting the Width of a Column
The SetWidth method sets the width of one or more columns and specify how the other columns in the table should change as a result: expression.SetWidth ColumnWidth, RulerStyle
The Width property lets you change the width of a column without worrying about the effect on the other columns. Specify the width you want in points-for example:
Selecting a Column
Adding a Row to a Table
Deleting a Row from a Table
Setting the Height of One or More Rows
Set the Height property of the row or rows in question by specifying the height in points
Inserting a Cell
Returning the Text within a Cell
Strip off the last two characters when assigning the Text property to a string:
Entering Text in a Cell
wdDeleteCellsEntireRow deletes the whole row.
wdDeleteCellsShiftLeft moves cells across to the left to fill the gap.
wdDeleteCellsShiftUp moves cells up to fill the gap.
Deletes the first cell in the first row of the first table in the active document and shifts the other cells in the first row to the left to fill the gap:
Selecting a Range of Cells
Converting a Table or Rows to Text
Use the ConvertToText method with a Table object, a Row object, or a Rows collection: converts only the first row of the selected table to tab-delimited text
Convert the first table in the document named Cleveland Report.doc to text separated by paragraphs and assign the range exTable to the converted information, and then copy the range, create a new document, and paste in the information
wdEndOfRangeColumnNumber returns the number of the column in which the end of the selection or range falls.
delete the column in which the range testRange ends if the range is more than one column wide:
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.