J
jjfeenix
HI:
I use the following code that use ad variable (WhichTable) to locate a named
bookmark, which is inside a table. Next, I set variables I need to retrieve
the info from certain cells.
ActiveDocument.Bookmarks(WhichTable).Select
Selection.Collapse (wdCollapseStart)
Selection.Tables(1).Select
Set myTable = Selection.Tables(1)
Selection.Collapse (wdCollapseStart)
Set myCatCell = myTable.Range.Cells(1)
Set mySesCell = myTable.Range.Cells(3)
Set myGoalCell = myTable.Range.Cells(5)
Set sesGoalCell = myTable.Range.Cells(6)
Am I doing this efficiently? I'm wondering if I should be using Range
objects rather than Selections, to cut down on screen redrawing. If I am
correct, any help with converting selections to ranges would be greatly
appreciated.
TIA,
John
I use the following code that use ad variable (WhichTable) to locate a named
bookmark, which is inside a table. Next, I set variables I need to retrieve
the info from certain cells.
ActiveDocument.Bookmarks(WhichTable).Select
Selection.Collapse (wdCollapseStart)
Selection.Tables(1).Select
Set myTable = Selection.Tables(1)
Selection.Collapse (wdCollapseStart)
Set myCatCell = myTable.Range.Cells(1)
Set mySesCell = myTable.Range.Cells(3)
Set myGoalCell = myTable.Range.Cells(5)
Set sesGoalCell = myTable.Range.Cells(6)
Am I doing this efficiently? I'm wondering if I should be using Range
objects rather than Selections, to cut down on screen redrawing. If I am
correct, any help with converting selections to ranges would be greatly
appreciated.
TIA,
John