View Single Post
 
Old 02-18-2020, 05:31 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Assuming the building block-placed table is IMMEDIATELY above the selection, you could move the selection back into the table by using the .Previous method along the lines of
Code:
  Dim aRng As Range, aTbl As Table, aCell As Cell
  Set aRng = Selection.Range.Paragraphs(1).Previous.Range
  Set aTbl = aRng.Tables(1)
  Set aCell = aTbl.Cell(1, 1)
  aCell.Range.Select
You should be looking to moving away from using the selection object once you have used it to define the initial insertion point.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote